Skip to content
Discussion options

You must be logged in to vote

You should read this section: https://grapesjs.com/docs/modules/Traits.html#add-traits-to-components. Specifically in the "Add Traits To Component" section where it references the changeProp.

From what I can tell, you are setting a property, not an attribute because of your changeProp: 1. That is fine if you don't want it to show up as an attribute in the tag, but you will want to react to the property change to add your span tag for error message etc.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wi-mm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants