Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
RichText: show boundary only with editable element focus #15466
Fixes #15463. The focus check should be more specific to editable elements. If a parent element has focus, e.g. the block or body element, the boundary should not be visible.
Of course the boundary attribute should be removed on blur, but we're not ready yet to remove "lingering" selection state on blur (e.g. formatting buttons would not work).
How has this been tested?
Types of changes
aduth left a comment
In my testing, this seems to work a little too well, i.e. I can't get the inline boundary to show again when clicking back inside the element.
Generally I'm not clear why either the style can't be assigned directly (related to #13838?) or the style selector be more specific to guarantee that we're targeting the intended element (is