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

<p></p> returned in empty rich text box #124

Open
cybermedi opened this issue Feb 25, 2024 · 1 comment
Open

<p></p> returned in empty rich text box #124

cybermedi opened this issue Feb 25, 2024 · 1 comment

Comments

@cybermedi
Copy link

When anyone accidentally click into rich text field it automatically create and empty paragraph. The API is then inconsistent.
In proper empty field the return is NULL and "clicked" field it return "

"
This makes front end testing complicated when do not render if the field is empty.

Solution:
on hygraph side check if the field is "optically" empty before the safe and remove empty paragraph tags.

@krisal
Copy link

krisal commented Nov 11, 2024

Are anyone in the team working with this? Kinda annoying.

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

No branches or pull requests

2 participants