mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 11:17:38 +08:00
Dropdown: take care of disabled triggering element
This commit is contained in:
parent
3a005ef5da
commit
6ff168fd57
@ -77,6 +77,7 @@
|
||||
? this.$refs.trigger.$el
|
||||
: this.$slots.default[0].elm;
|
||||
|
||||
if (triggerElm.disabled) return;
|
||||
if (trigger === 'hover') {
|
||||
triggerElm.addEventListener('mouseenter', show);
|
||||
triggerElm.addEventListener('mouseleave', hide);
|
||||
|
Loading…
Reference in New Issue
Block a user