Select: avoid stack overflow, fix #4106

pull/4235/head
pengchongfu 2017-04-11 14:11:22 +08:00 committed by 杨奕
parent 1cd4cc87ee
commit 36cc555f6e
1 changed files with 1 additions and 0 deletions

View File

@ -542,6 +542,7 @@
return;
}
if (this.options.length === 0 || this.filteredOptionsCount === 0) return;
this.optionsAllDisabled = this.options.length === this.options.filter(item => item.disabled === true).length;
if (!this.optionsAllDisabled) {
if (direction === 'next') {
this.hoverIndex++;