Commit 6ff168fd authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Dropdown: take care of disabled triggering element

parent 3a005ef5
......@@ -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);
......
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