Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
70 views
in Technique[技术] by (71.8m points)

javascript - popover fails with bootstrap 5

I am trying to reproduce the popover example from Bootstrap 5 but I had a weird behavior of the popover box that does not stay in place.

I just added data-bs-trigger="hover"

Here is a fiddle

Note that when you hover a couple of times the popover jumps around. I am using Chrome.

question from:https://stackoverflow.com/questions/65906243/popover-fails-with-bootstrap-5

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had a similar issue last year and learned after submitting it as an issue that this is the standard behavior in Bootstrap. It has to do with limiting the number of requests.

There are multiple open issues about it, so you should take it there: https://github.com/twbs/bootstrap/issues?q=popover

Workaround suggested here for example: https://github.com/twbs/bootstrap/issues/32372#issuecomment-749858100


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...