2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

fix: don't allow empty strings to be selected (#1595)

This commit is contained in:
Jeff Sagal
2022-02-19 11:29:03 -08:00
committed by GitHub
parent 673e6212fa
commit 93c479e972
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -702,7 +702,7 @@ export default {
value = this.$data._value
}
if (value !== undefined && value !== null) {
if (value !== undefined && value !== null && value !== '') {
return [].concat(value)
}
+1 -1
View File
@@ -213,7 +213,7 @@ describe('VS - Selecting Values', () => {
expect(Select.vm.selectedValue).toEqual(options)
})
fit('can select a false boolean option', async () => {
it('can select a false boolean option', async () => {
const Select = mountDefault({
options: [false],
})