Commit 1b7a032e authored by hetech's avatar hetech Committed by 杨奕

Popover: not emit event or create popper when disabled (#11426)

parent dc816832
...@@ -68,6 +68,9 @@ export default { ...@@ -68,6 +68,9 @@ export default {
}, },
watch: { watch: {
showPopper(val) { showPopper(val) {
if (this.disabled) {
return;
}
val ? this.$emit('show') : this.$emit('hide'); val ? this.$emit('show') : this.$emit('hide');
} }
}, },
......
...@@ -70,6 +70,9 @@ export default { ...@@ -70,6 +70,9 @@ export default {
}, },
showPopper(val) { showPopper(val) {
if (this.disabled) {
return;
}
val ? this.updatePopper() : this.destroyPopper(); val ? this.updatePopper() : this.destroyPopper();
this.$emit('input', val); this.$emit('input', val);
} }
......
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