Skip to content

Commit

Permalink
Cascader: not set readonly in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyang committed Jun 28, 2018
1 parent 78a9d8c commit 70ca8cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cascader/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
>
<el-input
ref="input"
:readonly="!(filterable && menuVisible)"
:readonly="readonly"
:placeholder="currentLabels.length ? undefined : placeholder"
v-model="inputValue"
@input="debouncedInputChange"
Expand Down Expand Up @@ -220,6 +220,10 @@ export default {
},
cascaderDisabled() {
return this.disabled || (this.elForm || {}).disabled;
},
readonly() {
const isIE = !this.$isServer && !isNaN(Number(document.documentMode));
return !this.filterable || (!isIE && !this.menuVisible);
}
},
Expand Down

0 comments on commit 70ca8cc

Please sign in to comment.