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

SW-6168 Fix up types for Slate editor, attempt to fix issue with first line break from hitting enter key not working #3315

Closed
wants to merge 2 commits into from

Conversation

nickgraz
Copy link
Contributor

@nickgraz nickgraz commented Nov 5, 2024

This did not end up fixing the issue, but might be an improvement we want.

Cleans up the types, gets rid of casting. Implements SectionElement to contain text and variable elements.

I spent a while on this, the main area where the fix is attempted is here, but it still does not seem to work. Even though I can see the values are being fixed (through the console), the Slate editor still does not show the line break.

Copy link

vercel bot commented Nov 5, 2024

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

Name Status Preview Comments Updated (UTC)
terraware-web-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 5:20pm
tree-location-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 5:20pm

Copy link
Contributor Author

nickgraz commented Nov 5, 2024

@nickgraz
Copy link
Contributor Author

nickgraz commented Nov 5, 2024

We may or may not actually want this, I was able to figure out how to fix this without fixing all the types. This is nice, but the surface area is much larger.

Copy link
Contributor

@constanzauanini constanzauanini left a comment

Choose a reason for hiding this comment

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

Let's merge it, it is an improvement!

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