Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - delete selected inline void in chrome #4526

Merged
merged 3 commits into from
Sep 24, 2021

Conversation

VictorBaron
Copy link
Contributor

Description
When you select an inline void element, and delete it (press "backspace"), no editor command are fired.
A Transform.deleteBackward is called instead.
Ref in the code
The problem: when you want to override default Editor's commands: that obviously doesn't work.

Expectation
Call Editor.deleteBackward instead of Transforms.deleteBackward.

Environment

  • Slate React Version: 0.65.3
  • Browser: Chrome, Safari

Context
Issue 4525

@changeset-bot
Copy link

changeset-bot bot commented Sep 15, 2021

🦋 Changeset detected

Latest commit: 95c87c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
slate-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@VictorBaron VictorBaron force-pushed the delete-inline-void-in-chrome branch from f197427 to 02b688b Compare September 15, 2021 13:23
@dylans dylans merged commit bc85497 into ianstormtaylor:main Sep 24, 2021
@github-actions github-actions bot mentioned this pull request Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants