In my Spring MVC web project, a Bootstrap popover appears when the help icon is clicked.
However, on the first click, the popover opens and moves away from the icon. After closing it and clicking again, the popover correctly positions itself.
When I change the click event to hover, initially the popover briefly appears far from the icon and then moves back to its correct position.
If you refer to this GIF image, it will give you a better understanding.
https://www.example.com/images/GIF.gif
I am using JSP with JSTL for this project.
I copied all the code as it is to Plunker, and it works perfectly there! You can access the code on this Plunker link.
The only difference is that I'm using Tomcat 9 with JSP instead of HTML.
image