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: Made selectionChange also trigger on focus #1355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matthewlipski
Copy link
Collaborator

https://linear.app/blocknote/issue/BLO-81/onselectionchange-behavior

@YousefED do we actually want this behaviour? The changes in this PR I think fix what the issue describes, but I don't know if it's what we want.

Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jan 6, 2025 1:00pm
blocknote-website ✅ Ready (Inspect) Visit Preview Jan 6, 2025 1:00pm

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

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

If this is the issue (clicking outside the editor), then we should expose/explain the focus / blur events indeed I think

@@ -730,22 +730,6 @@ export class BlockNoteEditor<
traverseBlockArray(blocks);
}

/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

did we deprecate these methods?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep see line 366 and below

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