Skip to content

Conversation

@aduth
Copy link
Member

@aduth aduth commented Nov 9, 2018

This pull request seeks to resolve an issue where attempting to use the sibling inserter in Firefox or Safari will result in unintended block selection (see example).

The reason for this can be attributed to browser-and-OS-specific handling of click and focus events, specifically affecting Firefox and Safari on macOS.

See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus

The changes here reason this issue by allowing the div wrapper to be focusable (not tabbable), thus receiving the focus event on itself.

Testing instructions:

Verify that the sibling inserter behaves as expected in your preferred browser, and in Firefox and Safari for macOS.

@aduth aduth added [Type] Bug An existing feature does not function as intended [Feature] Inserter The main way to insert blocks using the + button in the editing interface Browser Issues Issues or PRs that are related to browser specific problems labels Nov 9, 2018
@youknowriad youknowriad added this to the 4.3 milestone Nov 9, 2018
Copy link
Contributor

@mcsf mcsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the proper documentation and fix. WFM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Browser Issues Issues or PRs that are related to browser specific problems [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants