Commit 36cc555f authored by pengchongfu's avatar pengchongfu Committed by 杨奕

Select: avoid stack overflow, fix #4106

parent 1cd4cc87
...@@ -542,6 +542,7 @@ ...@@ -542,6 +542,7 @@
return; return;
} }
if (this.options.length === 0 || this.filteredOptionsCount === 0) 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 (!this.optionsAllDisabled) {
if (direction === 'next') { if (direction === 'next') {
this.hoverIndex++; this.hoverIndex++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment