mirror of https://github.com/ElemeFE/element
Select: avoid stack overflow, fix #4106
parent
1cd4cc87ee
commit
36cc555f6e
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue