Skip to content

Commit

Permalink
feat(select): fix search text is not clear bug when user click clear …
Browse files Browse the repository at this point in the history
…button (#858)

fix search text is not clear bug when user click clear button 
case: single select / clearable

closes #845

Co-authored-by: mustafa.ozbatman <[email protected]>
  • Loading branch information
mozbatman and mustafa.ozbatman authored Jun 13, 2024
1 parent e9d7992 commit f52f6c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/select/bl-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ export default class BlSelect<ValueType extends FormValue = string> extends Form
private _onClickRemove(e: MouseEvent) {
e.stopPropagation();

this._searchText = "";

const selectedDisabledOptions = this._selectedOptions.filter(option => option.disabled);

this._connectedOptions
Expand Down

0 comments on commit f52f6c0

Please sign in to comment.