When a dialog is draggable and has a position, the dialog moves a bit into the given direction by a simple click on the draggable header.
This also sometimes happens when you want to close the dialog. Instead of closing the dialog moves some distance, which can be frustrating.
Describe the bug
When a dialog is draggable and has a position, the dialog moves a bit into the given direction by a simple click on the draggable header. This also sometimes happens when you want to close the dialog. Instead of closing the dialog moves some distance, which can be frustrating.
Reproducer
https://stackblitz.com/edit/irricn?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Expected behavior
The dialog shouldn't move if it isn't dragged, but only clicked.