Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed tooltip takes effect only the second time. #14

Closed
agneym opened this issue Feb 4, 2018 · 2 comments
Closed

Fixed tooltip takes effect only the second time. #14

agneym opened this issue Feb 4, 2018 · 2 comments

Comments

@agneym
Copy link
Contributor

agneym commented Feb 4, 2018

Expectation

Fixed tooltip should produce a fixed tooltip shown on hover

What actually happens

No tooltip is shown first time. From the second time, tooltip is shown.

Steps to reproduce.

  1. Set initial value of :fixed-tooltip to true.
    ezgif-5-29634b857b
@agneym
Copy link
Contributor Author

agneym commented Feb 4, 2018

It seems to be because of this function.

showTooltip(show) {
   if (show && this.$refs.actions && this.fixedTooltip) {
         setTimeout(() => {
            this.$refs.actions.forEach((item) => {
                  if(this.toggle) {
                     item._tooltip.show();
                  }
             });
         },700);
    }
}

this.$refs.actions is undefined until it is actually triggered for the first time. This makes it an []
Why is this check in place?

Edujugon added a commit that referenced this issue Feb 5, 2018
@Edujugon
Copy link
Member

Edujugon commented Feb 5, 2018

It's resolved in your PR #15

@Edujugon Edujugon closed this as completed Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants