mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
solved problems with null object in options
This commit is contained in:
@@ -542,7 +542,7 @@
|
|||||||
option = this.findOptionByIndexValue(option)
|
option = this.findOptionByIndexValue(option)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof option === 'object') {
|
if (option && typeof option === 'object') {
|
||||||
if (!option.hasOwnProperty(this.label)) {
|
if (!option.hasOwnProperty(this.label)) {
|
||||||
return console.warn(
|
return console.warn(
|
||||||
`[vue-select warn]: Label key "option.${this.label}" does not` +
|
`[vue-select warn]: Label key "option.${this.label}" does not` +
|
||||||
|
|||||||
Reference in New Issue
Block a user