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

chore(ui): update current block in readonly by clicks on block #2859

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

neSpecc
Copy link
Member

@neSpecc neSpecc commented Nov 6, 2024

Problem

When you click on blocks in Read-Only mode, the current block does not update

Cause

We were adding "mousedown" and "touchstart" events (which update current block) only in non-Read-Only mode. However, since we recently allowed developers to create Inline Tools that work in Read-Only mode (#2832), it is now appropriate to update the current block in Read-Only mode as well.

Solution

The “mousedown” and “touchstart” events are now also bound in Read-Only mode.

@neSpecc neSpecc merged commit 7ee0622 into next Nov 6, 2024
6 checks passed
@neSpecc neSpecc deleted the current-block-in-readonly branch November 6, 2024 17:54
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