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 props injection condition check for elements #4025

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

e1himself
Copy link
Contributor

@e1himself e1himself commented Jan 23, 2025

It should exit if the injection is intended for elements (isElement) and if the current node is NOT an element.

Checklist

  • yarn typecheckthe command does not exist
  • yarn lint:fixthe command does not exist
  • yarn test
  • yarn brlthe command does not exist
  • yarn changeset
  • ui changelog — no UI changes

It should exit if the injection is intended for elements (`isElement`) and if the current node is NOT an element.
Copy link

codesandbox bot commented Jan 23, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

changeset-bot bot commented Jan 23, 2025

🦋 Changeset detected

Latest commit: cf27ff0

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

This PR includes changesets to release 3 packages
Name Type
@udecode/plate-core Patch
@udecode/plate-utils Patch
@udecode/plate 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

Copy link

vercel bot commented Jan 23, 2025

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

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 11:23am

@e1himself e1himself marked this pull request as draft January 23, 2025 11:08
@e1himself
Copy link
Contributor Author

e1himself commented Jan 23, 2025

I working through the checklist now ✔️ Done.

@e1himself e1himself marked this pull request as ready for review January 23, 2025 11:22
@e1himself
Copy link
Contributor Author

@zbeyens I've been trying to inject attributes into elements render output, but couldn't. By inspecting the source code I've found this problem.

Thank you 🙌

@zbeyens
Copy link
Member

zbeyens commented Jan 23, 2025

Looks good, thanks for the PR!

@zbeyens zbeyens enabled auto-merge January 23, 2025 12:50
@zbeyens zbeyens disabled auto-merge January 23, 2025 16:14
@zbeyens zbeyens merged commit d3c3acd into udecode:main Jan 23, 2025
6 checks passed
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