From 969aba42229275bd1d703d8c51890674105ac6c2 Mon Sep 17 00:00:00 2001 From: Kael Date: Wed, 29 Jun 2022 21:08:25 +1000 Subject: [PATCH] fix(VSelect): allow keyboard selection of items with value 0 fixes #15166 --- packages/vuetify/src/components/VSelect/VSelect.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vuetify/src/components/VSelect/VSelect.ts b/packages/vuetify/src/components/VSelect/VSelect.ts index 7de1a702775..589de57df5a 100644 --- a/packages/vuetify/src/components/VSelect/VSelect.ts +++ b/packages/vuetify/src/components/VSelect/VSelect.ts @@ -157,7 +157,7 @@ export default baseMixins.extend().extend({ computedCounterValue (): number { const value = this.multiple ? this.selectedItems - : (this.getText(this.selectedItems[0]) || '').toString() + : (this.getText(this.selectedItems[0]) ?? '').toString() if (typeof this.counterValue === 'function') { return this.counterValue(value) @@ -650,7 +650,7 @@ export default baseMixins.extend().extend({ this.keyboardLookupLastTime = now const index = this.allItems.findIndex(item => { - const text = (this.getText(item) || '').toString() + const text = (this.getText(item) ?? '').toString() return text.toLowerCase().startsWith(this.keyboardLookupPrefix) })