I am facing a challenge with a table that includes multiple rows that need to be editable and deletable. To achieve this, I have created a <div>
containing buttons that should appear when hovering over the rows. While this setup works well, I am encountering an issue where the buttons continue to display and hide in a loop when the mouse moves over them. I attempted to use the mouseleave
event to address this, but it triggered even when hovering over the buttons, creating the unwanted loop.
For a visual representation of the issue, you can visit this link: https://jsfiddle.net/8d726rqt/
I have searched for a solution and found recommendations where the shown and hidden elements are children of the parent element, which does not apply to my scenario. Additionally, suggestions to use pointer-events: none
have been made, but this approach prevents the buttons from receiving click events, which is not ideal for my situation.