clauderic / dnd-kit

The modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
http://dndkit.com
MIT License
11.9k stars 602 forks source link

Screen reader support for nested DndContext #1394

Open rishitank opened 2 months ago

rishitank commented 2 months ago

Hi, when using a nested DndContext, it seems that the screen reader announcements for the nested DndContext render in the DOM in the same place as the outer DndContext:

<DndContext>
   <div>
      drag / drop components here...
      <button>
         <DndContext>
         some other drag / drop components here...
         </DndContext>
      </button>
   </div>
   Screen reader announcements render here in the DOM for both contexts...
<DndContext>

Is there a fix for this or is this a bug? Thanks.