Skip to content

Commit

Permalink
fix: handle UI object in filterBy string conversion
Browse files Browse the repository at this point in the history
Ensures proper string conversion of label parameter in filterBy to handle UI objects.
Resolves issue with toLocaleLowerCase() failing on non-string values.
  • Loading branch information
pixelastronauts authored Jan 8, 2025
1 parent d2643e3 commit 9914f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export default {
type: Function,
default(option, label, search) {
return (
(label || '')
String(label || '')
.toLocaleLowerCase()
.indexOf(search.toLocaleLowerCase()) > -1
)
Expand Down

0 comments on commit 9914f4a

Please sign in to comment.