Skip to content

Commit

Permalink
fix(VSelect): Do not keep null items when filtering duplicates (#14464)
Browse files Browse the repository at this point in the history
fixes #14421
  • Loading branch information
billerby committed Dec 14, 2021
1 parent 1bb1455 commit 8fd3510
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VSelect/VSelect.ts
Expand Up @@ -325,6 +325,10 @@ export default baseMixins.extend<options>().extend({
for (let index = 0; index < arr.length; ++index) {
const item = arr[index]

// Do not return null values if existant (#14421)
if (item == null) {
continue
}
// Do not deduplicate headers or dividers (#12517)
if (item.header || item.divider) {
uniqueValues.set(item, item)
Expand Down

0 comments on commit 8fd3510

Please sign in to comment.