microsoft/tabster

Restorer relies on focusout event firing when element is removed

Closed this issue · 1 comments

Safari does not fire focusout or any other events when a node is removed, which means focus isn't restored when the restorer source is unmounted, even though focus returns to the body.

This can be reproduced in the Restorer stories in Safari, and also in FUI in components with popups (e.g. Popover, Dialog, Menu, etc.).

Actually jumped the gun a little here -- the current focusout approach doesn't work in any non-Chromium browser, and the spec is unclear/currently debated as to which approach is correct.

ref: