Skip to content

Commit

Permalink
fix(multi-input): only focus input on click clear button (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarin-Udompanish authored Nov 4, 2021
1 parent 8c710b1 commit 214452a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/elements/src/multi-input/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
}

/**
Expand Down

0 comments on commit 214452a

Please sign in to comment.