-
Notifications
You must be signed in to change notification settings - Fork 55
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
'active' attribute behavior isn't predictable #13
Comments
I just realized that if I do |
@daraul |
In my component file I have something like this:
Then on whatever element should display the tooltip (an input for example) I have this:
Then I can do something in my _construct function to show the tooltips after a timeout (for some reason displaying them immediately doesn't work):
That should get you to display the tooltips on command, @jj-julia. Note that I wrote this off the top of my head so there might be syntax errors here and there, but you should get the gist of it. |
I think #32 fixes the issue you're having. |
I have fixed this in an updated version of this project. This issue was specifically fixed along with an example added to the demo in this commit. |
I'm trying to display my tooltips programatically. Preferably on page load, I'd want relavant tooltips to display themselves for 5 seconds.
I did something like this:
In the DOM I set the
active
my attribute on my button like this:active="{{ show_tooltips }}"
.When the page loads for a split second I can see the tooltips (maybe when the
show_tooltips
variable is created and then set to false), but once the IonPageDidLoad function runs and setsshow_tooltips
to true, nothing happens. Then 5 seconds later whenshow_tooltips
is set to false, the tooltips display.I expected this to be the other way around. I went ahead and switched the assignments around, thinking maybe the documentation was just incorrect, but nothing happened this time around either. I tried doing this, before setting the timeout:
to see if maybe they need to be 'hidden' before being 'revealed', but that didn't work either. Can you give me some clarity? Am I doing something wrong? Is this behavior expected? I was really hoping to use this in a tutorial inside my application, but being unable to programatically show and hide the tooltips is a dealbreaker for me.
The text was updated successfully, but these errors were encountered: