File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 7979 $: {
8080 innerOptions = verifySelectedOptions (innerOptions, selectedValues);
8181 refOptions = verifySelectedOptions (innerOptions, selectedValues);
82+ applySearchFilter ();
8283 changeDisplayText ();
8384 }
8485
109110 } else {
110111 innerOptions = verifySelectedOptions (options, selectedValues);
111112 refOptions = verifySelectedOptions (options, selectedValues);
113+ applySearchFilter ();
112114 changeDisplayText ();
113115 }
114116 }
162164 /** @param {any} e */
163165 function changeSearchValue (e ) {
164166 searchValue = e .target .value || ' ' ;
167+ applySearchFilter ();
168+ verifySelectAll ();
169+ }
170+
171+ function applySearchFilter () {
165172 const innerValue = searchValue .toLowerCase ();
166173
167174 if (searchValue) {
168175 innerOptions = [... refOptions .filter (x => x .label .toLowerCase ().includes (innerValue))];
169176 } else {
170177 innerOptions = [... refOptions];
171178 }
172-
173- verifySelectAll ();
174179 }
175180
176-
177181 /**
178182 * @param {any} e
179183 * @param {any} option
You can’t perform that action at this time.
0 commit comments