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

popover trigger 'focus' does not work in chromium #844

Closed
abriel opened this Issue Dec 22, 2011 · 4 comments

Comments

Projects
None yet
5 participants
@abriel

abriel commented Dec 22, 2011

Hi..
I set up a popover for a[rel=popover] and set trigger in 'focus'.
In Mozilla firefox when I click on link - popover shows and all is good.
When I do the same in google chromuim browser - nothing happens.

If I use 'hover' triger - it works in google chrome, but in that case I give the problem described in #696

with trigger 'focus' in firefox I can use mouse on popover div and use some stuff there.

@fat

This comment has been minimized.

Show comment
Hide comment
@fat

fat Dec 23, 2011

Member

focus was meant for inputs not for elements.

Member

fat commented Dec 23, 2011

focus was meant for inputs not for elements.

@fat fat closed this Dec 23, 2011

@alejandroiglesias

This comment has been minimized.

Show comment
Hide comment
@alejandroiglesias

alejandroiglesias Jan 6, 2012

fat: Maybe you're right, I also sometimes like to be more clean coding, but also sometimes it's good to be agile giving solutions. I think popover opening on clicking an element is a good feature and maybe my solution is not clean but works. It's based on adding the attribute "tabindex" with a "0" value and that enables the focus event on the anchor. That can also be done with JS, as I did in this fiddle so no extra markup is needed. Well, thank you very much for your answers.

fat: Maybe you're right, I also sometimes like to be more clean coding, but also sometimes it's good to be agile giving solutions. I think popover opening on clicking an element is a good feature and maybe my solution is not clean but works. It's based on adding the attribute "tabindex" with a "0" value and that enables the focus event on the anchor. That can also be done with JS, as I did in this fiddle so no extra markup is needed. Well, thank you very much for your answers.

@andreczip

This comment has been minimized.

Show comment
Hide comment
@andreczip

andreczip Mar 13, 2013

There is another alternative way to solve this for elements?

There is another alternative way to solve this for elements?

@khalilG

This comment has been minimized.

Show comment
Hide comment
@khalilG

khalilG Aug 5, 2014

@alejandroiglesias : adding "tabindex" with a "0" value worked perfectly for me, knowing that I was facing the problem on IE 11, Firefox 26 and Chrome 36. Thanks !

khalilG commented Aug 5, 2014

@alejandroiglesias : adding "tabindex" with a "0" value worked perfectly for me, knowing that I was facing the problem on IE 11, Firefox 26 and Chrome 36. Thanks !

@twbs twbs locked and limited conversation to collaborators Aug 5, 2014

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.