Closed mvorisek closed 1 year ago
reproducible on https://dev.agiletoolkit.org/demos/interactive/jssortable.php demo
maybe ID is fine, but the announcements div should be added only once, even if new Draggable.Sortable
is called more than once (once per UI component, but we can have more components of course)
@tsov you are the author of the original PR, can you please look at this problem?
the problem seems to be https://github.com/Shopify/draggable/blob/05498d3f74d6f8147608799a2f63f9a245235b73/src/Draggable/Plugins/Announcement/Announcement.js#L177 is called more than once - https://stackoverflow.com/questions/6261966/domcontentloaded-only-once
no reaction
introduced in https://github.com/Shopify/draggable/pull/102, the div can exists multiple times with the same ID in the DOM
please merge & release asap, this problem is failing our CI where we assert no duplicate ID across all tested pages