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

tooltip on input flicker #3501

Closed
jstrimpel opened this issue May 16, 2012 · 2 comments
Closed

tooltip on input flicker #3501

jstrimpel opened this issue May 16, 2012 · 2 comments
Labels

Comments

@jstrimpel
Copy link

I assign a tooltip to an input when there is a form validation error. After a few times of rendering it then begins to flicker on quickly then disappears on subsequent validation errors. Initially I thought I was binding multiple event handlers, but I am only initializing once then toggling states something like below. What am I doing wrong?

if (!this.renderFormError[key]) {
this.renderFormError[key] = true;
$target.tooltip({ trigger: 'manual' });
}

if (error)
$target.tooltip('show');
else
$target.tooltip('hide');

@fat
Copy link
Member

fat commented May 20, 2012

that looks like it should work, could you please provide a jsfiddle? Thanks!

@fat
Copy link
Member

fat commented Jun 2, 2012

closing for now. feel free to reopen with a fiddle.

@fat fat closed this as completed Jun 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants