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

tooltips do not disappear on their own #54

Closed
nfarabullini opened this issue Dec 10, 2018 · 2 comments · Fixed by #64
Closed

tooltips do not disappear on their own #54

nfarabullini opened this issue Dec 10, 2018 · 2 comments · Fixed by #64
Assignees
Labels
Projects

Comments

@nfarabullini
Copy link
Contributor

When selecting a field, a tooltip stays visible until another point on the page is clicked

@nfarabullini nfarabullini added this to To do in SmaRP board via automation Dec 10, 2018
@riccardoporreca riccardoporreca moved this from To do to In progress in SmaRP board Dec 12, 2018
@riccardoporreca
Copy link
Member

This is due to the default triggers for the tooltips in bootstrap's JavaScript (see e.g. this SO question), which are both hover and focus (clicked element).

Having hover only would fix the issue. This can be achieved via the extra argument bs_embed_tooltip(..., trigger = "hover"). More details in the bootstrap documentation.

However, shinyWidgets::useShinydashboardPlus() interferes with this and the behavior is the same.

@RolandASc RolandASc self-assigned this Dec 27, 2018
@RolandASc
Copy link
Member

I think we are fine with the default behavior for most of the input widgets, and will just move the tooltips for the checkboxes and radiobuttons onto the labels instead of the whole widgets. This will solve the problem there (i.e. clicking will not stick the tooltip anymore).

RolandASc added a commit that referenced this issue Dec 28, 2018
@RolandASc RolandASc moved this from In progress to Done in SmaRP board Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
SmaRP board
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants