Skip to content

Commit

Permalink
fix(module:select): fix clear error
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-nest-moon committed Oct 26, 2024
1 parent b1e4611 commit d1992e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ng-nest/ui/select/select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,9 @@ export class XSelectComponent extends XSelectProperty implements OnInit, OnChang
}

clearEmit() {
this.value.update((x) => {
this.value.update(() => {
if (this.multiple()) {
x.splice(0, x.length);
return x;
return [];
} else {
return '';
}
Expand Down

0 comments on commit d1992e8

Please sign in to comment.