Skip to content

Commit

Permalink
Added focus and blur listeners for 'hover' trigger
Browse files Browse the repository at this point in the history
Adds focus and blur event listeners in the 'hover' trigger, improving the accessibility of this library.
  • Loading branch information
niklilland committed Aug 7, 2018
1 parent ba7e5f9 commit d274c02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/component/popper.js.vue
Original file line number Diff line number Diff line change
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 d274c02

Please sign in to comment.