π Bug Report
When using a controlled DrawerRoot component, the @update:open event is fired twice when the drawer is closed by clicking on the overlay.
This can lead to unexpected side effects such as triggering state updates twice.
Reka UI Dialog works as expected and emits the event only once, as shown in this working example: π Reka UI Reproduction.
π§ͺ Reproduction
You can reproduce the issue here:
π StackBlitz Reproduction
Steps to reproduce:
- Open the drawer.
- Click on the overlay to close it.
- Check the console.
π§ Expected Behavior
The @update:open event should only be emitted once when the drawer is closed or opened.
π Bug Report
When using a controlled
DrawerRootcomponent, the@update:openevent is fired twice when the drawer is closed by clicking on the overlay.This can lead to unexpected side effects such as triggering state updates twice.
Reka UI Dialog works as expected and emits the event only once, as shown in this working example: π Reka UI Reproduction.
π§ͺ Reproduction
You can reproduce the issue here:
π StackBlitz Reproduction
Steps to reproduce:
π§ Expected Behavior
The @update:open event should only be emitted once when the drawer is closed or opened.