From ca74d738fe0a06bd22985558df90d3ae0d948f58 Mon Sep 17 00:00:00 2001 From: Sarin Udompanish Date: Wed, 3 Nov 2021 09:38:35 +0700 Subject: [PATCH] fix(multi-input): only focus input on click clear button --- packages/elements/src/multi-input/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/elements/src/multi-input/index.ts b/packages/elements/src/multi-input/index.ts index 0f6a854c44..fa39e82e92 100644 --- a/packages/elements/src/multi-input/index.ts +++ b/packages/elements/src/multi-input/index.ts @@ -296,7 +296,6 @@ export class MultiInput extends ControlElement implements MultiValue { if (process) { this.composer.removeItem(item); this.requestUpdate(); - this.focus(); /* keep focus on multi-input */ return item; } @@ -538,6 +537,7 @@ export class MultiInput extends ControlElement implements MultiValue { const items = this.composer.queryItems(() => true) as MultiInputData; const item = items[Number(index)]; this.removeItem(item, true); + this.focus(); // keep focus on multi-input } /**