mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
useFocusTrap ran after its children mounted and moved focus to the first focusable element, so a dialog's autoFocus field lost focus to the close button. The trap now leaves focus alone when it is already inside.