We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To Reproduce
See this saved idyll editor, which simply has [div text:"Hello" /] in the editor side and shows "hello" as output.
[div text:"Hello" /]
Expected behavior I don't expect the value of a text prop to show up as a child of the component.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Weird!
I'm not sure if this is a React behavior or an idyll introduced error. Going to look into this more and report back.
Sorry, something went wrong.
Yeah I had the same thought. I checked that, however. It doesn't appear to be a feature of react.
Thanks for checking that out. This seems to be related to how we're representing components via a JSON schema. You can see the bug here https://github.com/idyll-lang/idyll/blob/master/packages/idyll-document/src/utils/schema2element.js#L43-L46. I believe that check could be safely removed as we don't set the text property anywhere when generating the schema from the AST.
1cb88a1
Merge pull request #518 from idyll-lang/text-prop-insert
2c7a4f5
remove unused text feature. fixes #503
mathisonian
No branches or pull requests
To Reproduce
See this saved idyll editor, which simply has
[div text:"Hello" /]
in the editor side and shows "hello" as output.Expected behavior
I don't expect the value of a text prop to show up as a child of the component.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: