Skip to content

fix(richtext-lexical): prevent runtime error if using TextStateFeature without props #12668

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

Merged
merged 2 commits into from
Jun 5, 2025

Conversation

GermanJablo
Copy link
Contributor

TextStateFeature wasn't intended to be used without props, but it still shouldn't throw a runtime error if used that way. Perhaps some users are experimenting until they decide on the props.

Fixes #12518

@GermanJablo GermanJablo enabled auto-merge (squash) June 3, 2025 21:00
@GermanJablo GermanJablo merged commit 6f82154 into main Jun 5, 2025
77 checks passed
@GermanJablo GermanJablo deleted the textState-no-props branch June 5, 2025 14:12
Copy link
Contributor

github-actions bot commented Jun 9, 2025

🚀 This is included in version v3.42.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

text state feature reading state from undefined props
2 participants