Re: [w3c/uievents] Should an element remain focused and receive key events if it's display:none-ed? (#236)

> Even if the `blur` event is not fired, there are other ways to observe whether the element lost focus, right? E.g., `activeElement`?

Looking at activeElement does not seem be a way to observe this (and I can't help be think: why would it be? Last I recall it represented the focused element ignoring window activation <-- the AppKit/UIKit/GUI toolkit concept, haven't checked the spec, yet. FYI,  In Safari and Firefox `document.activeElement` is **still** the <input> after the display:none'ing in the example. Only Chrome changes the activeElement, but then it also dispatches a blur.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/236#issuecomment-506795947

Received on Friday, 28 June 2019 16:29:30 UTC