hoverClass does not work if sortable item contains inner elements #504
Labels
bug
help wanted
info needed
More info needs to be provided to discuss/solve the issue
PR needed
This issue requires a PR to be fixed. If you have time to help, please send a PR.
test case needed
To validate this issue a jsfiddle or codepen is needed.
I'm opening this issue because:
I used wrappers to group some elements, and wanted to re-order the wrappers.
css of
hoverClass
set in config would not show up since most of the time my cursor is on a child element.It is probably result of this line,
html5sortable/docs/html5sortable.js
Line 642 in e8da2be
the event.target from a child element will not match item
supporting information:
How can the issue be reproduce the problem?
Wrap the list content text of the first example provided in a
<p>
, item no longer changes to maroon when hovered.As a quick fix I modified the html5sortable.js, adding a class to all sortable-list
then check if the event.target a descendant of item and if they share the same parent sortable-list
Hope this would be helpful, not sure if this will cause any conflicts.
The text was updated successfully, but these errors were encountered: