From d1992e895c8519e628ad69c2553d64ef4774adda Mon Sep 17 00:00:00 2001 From: ng-nest-moon Date: Sat, 26 Oct 2024 10:36:27 +0800 Subject: [PATCH] fix(module:select): fix clear error --- lib/ng-nest/ui/select/select.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ng-nest/ui/select/select.component.ts b/lib/ng-nest/ui/select/select.component.ts index 53b74f66..abbb97fd 100644 --- a/lib/ng-nest/ui/select/select.component.ts +++ b/lib/ng-nest/ui/select/select.component.ts @@ -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 ''; }