Skip to content

Commit

Permalink
Merge pull request #48 from roaringskyinc/focus-listener
Browse files Browse the repository at this point in the history
Added focus and blur listeners for 'hover' trigger
  • Loading branch information
RobinCK committed Aug 8, 2018
2 parents ba7e5f9 + d274c02 commit 47ba2ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/component/popper.js.vue
Expand Up @@ -202,9 +202,13 @@
break;
case 'hover':
on(this.referenceElm, 'mouseover', this.onMouseOver);
on(this.referenceElm, 'focus', this.onMouseOver);
on(this.popper, 'mouseover', this.onMouseOver);
on(this.popper, 'focus', this.onMouseOver);
on(this.referenceElm, 'mouseout', this.onMouseOut);
on(this.referenceElm, 'blur', this.onMouseOut);
on(this.popper, 'mouseout', this.onMouseOut);
on(this.popper, 'blur', this.onMouseOut);
break;
}
},
Expand Down

0 comments on commit 47ba2ab

Please sign in to comment.