jwstegemann / fritz2

Easily build reactive web-apps in Kotlin based on flows and coroutines.
https://www.fritz2.dev
MIT License
627 stars 25 forks source link

This PR fixes some Flow-based focus-trap issue #856

Closed Lysander closed 1 month ago

Lysander commented 3 months ago

When using the trapFocusWhenever in some rare situations, the focus-trap would remain alive after closing the trap-container. This bug is now closed.

This was reproducible inside the PopOver-component (in the demo!): After closing the popover one could no more tab away from the button.

Also the focus-trap is now located correctly inside the PopOver-component: On top of the portal-container and not the trigger.