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 React and Vue NodeView renderers not adding correct selection classes #4452

Merged
merged 3 commits into from
Sep 15, 2023

Conversation

bdbch
Copy link
Contributor

@bdbch bdbch commented Sep 15, 2023

Please describe your changes

Fix for an issue that caused node-view elements not having the .Prosemirror-selectednode class as the vanilla nodeViews and normal atom node blocks receive.

How did you accomplish your changes

Add according classList modifications to the renderer code.

How have you tested your changes

Locally inside the vue-2, vue-3 and react demos and compared to the vanilla js demo

How can we verify your changes

See above

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

@bdbch bdbch self-assigned this Sep 15, 2023
@netlify
Copy link

netlify bot commented Sep 15, 2023

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 3db20b3
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/6504536994da830007c23e6b
😎 Deploy Preview https://deploy-preview-4452--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 configuration.

@bdbch bdbch merged commit 2e199b0 into main Sep 15, 2023
15 checks passed
@bdbch bdbch deleted the bdbch/fix-nodeview-selected-class branch September 15, 2023 13:06
andrewlu0 pushed a commit to trybaseplate/tiptap that referenced this pull request Oct 20, 2023
…sses (ueberdosis#4452)

* fix(react): add correct / remove selected class
* fix(vue-2): add correct / remove selected class
* fix(vue-3): add correct / remove selected class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants