Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix(core-suggest): adjust filter case to allow to filter for empty st…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
skjalgepalg committed Oct 26, 2023
1 parent 96a921b commit afa9a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-suggest/core-suggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function onInput (self, event) {
* @fires `suggest.filter`
*/
function filterItemsByInput (self) {
if (!dispatchEvent(self, 'suggest.filter') || !(self.input && self.input.value)) return
if (!dispatchEvent(self, 'suggest.filter') || !(self.input && self.input.value != null)) return
const value = self.input.value.toLowerCase()
const items = self.querySelectorAll('a,button')

Expand Down

0 comments on commit afa9a64

Please sign in to comment.