Skip to content

Commit fe699bf

Browse files
committed
chore: set focus back to toggle input on clicking close button
1 parent 9c6b207 commit fe699bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elements/pf-search-input/pf-search-input.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ export class PfSearchInput extends LitElement {
381381
this.value = '';
382382
this._toggleInput!.value = this.value;
383383
this.#combobox.selected = [];
384+
this._toggleInput?.focus();
384385
}
385386

386387
#hideCloseButton() {

0 commit comments

Comments
 (0)