Dropdown: take care of disabled triggering element

This commit is contained in:
Leopoldthecoder 2017-08-30 10:31:33 +08:00 committed by 杨奕
parent 3a005ef5da
commit 6ff168fd57

View File

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