[BUG] - Checkbox Traits are not rendered correctly
Question
Checkbox type traits are not getting shown as "checked" in the component settings.
To reproduce:
- Import markup
<input type="checkbox" checked />
- Select the input element in the canvas
- Go to Component Settings
- Notice that the Checked setting is not checked.
The same issue can be noticed for the "required" attribute.
Similarly, if you import
<input required />
or
<input required=""/>
or
<input required="required"/>
the component settings do not properly show that element as being Required.
Expectation: If the attribute is present, and its value is an empty string or a value that is an ASCII case-insensitive match for the attribute’s canonical name, with no leading or trailing white space, then the Checkbox in component settings should be CHECKED
Answers (2)
Should be fixed with the latest https://github.com/artf/grapesjs/releases/tag/v0.14.33 and https://github.com/artf/grapesjs-plugin-forms/releases/tag/v1.0.1 (changed the name of the plugin gjs-plugin-forms -> grapesjs-plugin-forms)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1606
[Bug] Input disappear on clear
How to reproduce it:Goto https://grapesjs.com/demo.htmlDrag a form in Forms category into canvasType something => focus out => focus in =>...
Issue #1579
Border Color Issue
@artf There is bug in the border color if you drag a button on the editor and paste color like rgb(255, 0, 0) in border color and select an...
Issue #1593
[Bug] Images within links break when changing parent 'editable' flag
Version: v0.14.44 Steps to reproduce:Drag 'Link block'Drag 'Image' within previous 'Link block'Select 'Link block'Type in console: editor.g...
Issue #1563
[Bug] Trait - Change Video Provider issue
Version: 0.14.40 Bug: When you change "Provider" field -> all settings gone. It happens in Chrome, Safari and Firefox, last versions. How t...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.