Skip to content

Commit

Permalink
fix(Tooltip): tabindex not work
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyu.chen committed May 20, 2019
1 parent 8933a05 commit 7581444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tooltip/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default {
this.referenceElm = this.$el;
if (this.$el.nodeType === 1) {
this.$el.setAttribute('aria-describedby', this.tooltipId);
this.$el.setAttribute('tabindex', 0);
this.$el.setAttribute('tabindex', this.tabindex);
on(this.referenceElm, 'mouseenter', this.show);
on(this.referenceElm, 'mouseleave', this.hide);
on(this.referenceElm, 'focus', () => {
Expand Down

0 comments on commit 7581444

Please sign in to comment.