Duplicate aria-describedby="-live-region"
IDs for multiple drag-and-drop containers
#111
Labels
bug
Something isn't working
Description:
After updating to v^0.2.4, we encountered an issue where the parent container for drag-and-drop elements is assigned
aria-describedby="-live-region"
. A live region div is then inserted at the root of the document with the same ID (-live-region), causing duplicate IDs when multiple drag-and-drop containers are present on the same page.It appears that all instances are sharing the same div, as the first occurrence in the DOM is being used for announcements while dragging. However, the repeated use of the same ID could lead to conflicts.
Suggested Improvement:
Implement a guard that checks if the live region div has already been appended to the document. This would prevent additional drag-and-drop containers from attempting to insert a duplicate live region, while ensuring that all instances share the first one for updates mind SSR.
The text was updated successfully, but these errors were encountered: