Re: [w3c/webcomponents] Should host with `delegatesFocus` true keep the previous focused element focused if it's a shadow-including descendant of the host? (#840)

Hm... that might be annoying behavior for users though. If page's script kept focusing a component, it would always reset the focus in the component.

I guess the current processing model returns early if the current focus is already at where `focus()` is called: https://html.spec.whatwg.org/multipage/interaction.html#focus-processing-model so maybe we need an equivalent check for shadow hosts so that if you'd call focus() on an already focused shadow host, then we'd just simply return early.

-- 
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/webcomponents/issues/840#issuecomment-533442432

Received on Friday, 20 September 2019 07:28:54 UTC