"Checked" trait does not get updated
Thanks @gpmonch for the report but it's just an issue with the webpage preset which uses an old version of forms plugin. Here you can see a working example https://jsfiddle.net/bp5e9zkc/
Read full answer below ↓Question
When updating a component of type checkbox which has the "checked" trait via html import, it does not update the trait input, i.e: in the grapes.js demo, import html option, add a checked="checked" attribute to the "Male" checkbox in the demo form, the result is that the checkbox on the form is checked, but it's "checked" trait is not.
Answers (2)
Thanks @gpmonch for the report but it's just an issue with the webpage preset which uses an old version of forms plugin. Here you can see a working example https://jsfiddle.net/bp5e9zkc/
Thanks for the quick reply!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #486
Custom Component not editable and also after traits update canvas does not update
below is code i used for traits and custom section but after adding component via block, cannot edit text or trait update does not update c...
Issue #4466
Change in traits does not update html
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://jsfi...
Issue #943
[BUG]: Checkbox trait doesn't remove attribute when unchecked
When html attributes are true or false, the should either exist or not exist. For example, required. This don't have a value in HTML5. Vali...
Issue #1658
[BUG] Checkbox trait does not load as checked even when the trait value is true
Hi, I'm using Grapesjs version 0.14.33. I'm loading some components when the form loads and I have a component with a checkbox trait. When...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.