Postlagerkarte / blazor-dragdrop

Easy-to-use Drag and Drop Library for Blazor
MIT License
406 stars 97 forks source link

Issue in Dialog with MudBlazor #122

Open SerreauFrederic opened 3 years ago

SerreauFrederic commented 3 years ago

Hi, I use your component and It's very good.

But I had an a issue with MudBlazor component, only on Chrome.

On classic page, all it's ok, but in MudDialog, the DragZone component doesn't work.

If you want you can try this :

<MudDialog>
     <DialogContent>
          <Dropzone ... />
     </DialogContent>
</MudDialog>

In demo solution, I solved by adding tabindex="1" on <div draggable > in DropZone.razor file

In my solution, I solved like that :

<MudDialog>
     <DialogContent>
        <DropZone >
               <div tabindex="1">
                    <MyDraggableComponent />
               </div>
          </DropZone>
     </DialogContent>
</MudDialog>

Thanks.