浏览代码

Select: avoid stack overflow, fix #4106

pengchongfu 8 年之前
父节点
当前提交
36cc555f6e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/select/src/select.vue

+ 1 - 0
packages/select/src/select.vue

@@ -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++;