[Bug]:When adding any element and the position of this element is at the top of the sheet or dialog box, then clicking on this element whose position is at the top of the page and then close the sheet or dialog close #3081
When adding any element and the position of this element is at the top of the sheet or dialog box, then clicking on this element whose position is at the top of the page and then close the sheet or dialog close
ex:
For example, when adding an error message to a toast when closing that toast it closes to drag it directly closed sheet or dialog box
Or when adding a button in the top position 999 when the sheet or dialog box is open, it closes to drag it directly
Affected component/components
sheet and dialog
How to reproduce
I've added two pictures to explain how I do
In the two images, you will find that the toast is above the sheet. When you click on it, the sheet closes automatically
I also put a Feedback button in the User Snap Library, and when you click on it, it closes the sheet immediately.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
I am test on all OS mac and windows and Linux and test in fire fox and chrome
Before submitting
[X] I've made research efforts and searched the documentation
Describe the bug
When adding any element and the position of this element is at the top of the sheet or dialog box, then clicking on this element whose position is at the top of the page and then close the sheet or dialog close ex: For example, when adding an error message to a toast when closing that toast it closes to drag it directly closed sheet or dialog box
Or when adding a button in the top position 999 when the sheet or dialog box is open, it closes to drag it directly
Affected component/components
sheet and dialog
How to reproduce
I've added two pictures to explain how I do In the two images, you will find that the toast is above the sheet. When you click on it, the sheet closes automatically I also put a Feedback button in the User Snap Library, and when you click on it, it closes the sheet immediately.
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting