I am working on creating a user-friendly sortable list using jQueryUI. When a user hovers over an item, I want to display options such as edit and delete. So far, this functionality is working well.
However, the challenge I'm facing is making these options disappear when the item is activated (before it's moved). Currently, I have managed to make them vanish when the item is clicked on but now the button within the options cannot be clicked as the item gets selected, hiding the options.
I suspect that the following code snippet might be causing the issue:
.script-item:active .scriptItemOptions {
display: none;
}
Do you think my approach is correct for achieving this behavior?