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(core): isNodeSelection, isTextSelection not always false #3089

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

kivikakk
Copy link
Contributor

Fixes #2979. Since the ProseMirror TypeScript upgrade, these have always returned false, since the Selection type tree are all classes now.

I've also removed isObject and isClass, as they're unused now.

(I'm noticing in #3026 that the "Add pull requests to Tiptap project" CI job looks broken right now.)

Fixes ueberdosis#2979.  Since the ProseMirror TypeScript upgrade, these have
always returned false, since the Selection type tree are all classes
now.
@netlify
Copy link

netlify bot commented Aug 16, 2022

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 0aa373b
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/62fafc924374f20008113b22
😎 Deploy Preview https://deploy-preview-3089--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@bdbch bdbch left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you for this PR and a good find!

Regarding the GitHub CI action: Looking into that 👍

@bdbch bdbch merged commit 574cd69 into ueberdosis:main Aug 22, 2022
@kivikakk kivikakk deleted the is-selection-fixes branch August 22, 2022 11:48
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.

isTextSelection always returns false
2 participants