Input component while load changing as a div tag #4358
Unanswered
senthil177cse
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I can't reproduce it on the official demo, it might be related to your code (eg. custom input component). Are you able to create a reproducible demo? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @artf ..
Thank you for your amazing grapesjs.
in below you can see video while adding the input component in canvas it DOM added like
INPUT
tag only but after loaded the page its chnaging as aDIV
tag.. below i have added json for that input also...{
"htmlCSS": [
{
"selectors": "i3mx",
"style": {
"width": "100%",
"height": "100%",
"padding-top": "15px",
"__p": false,
"padding-bottom": "15px",
"padding-right": "15px",
"padding-left": "15px",
"background-color": "#eaeaea"
},
"mediaText": "(max-width: 480px)",
"atRuleType": "media"
},
{
"selectors": "ivsf",
"style": { "width": "100%", "height": "4%", "__p": false },
"mediaText": "(max-width: 480px)",
"atRuleType": "media"
}
],
"htmlJSON": [
{
"tagName": "section",
"attributes": { "type": "grid", "id": "i3mx" },
"components": [
{
"type": "input",
"void": true,
"attributes": {
"required": true,
"visibility": true,
"type": "text",
"placeholder": "testing placeholder",
"id": "ivsf"
}
}
]
}
]
}
can you explain me why its happening? For ref refer the attached video.
Mobility.Editor.1.mp4
.
Beta Was this translation helpful? Give feedback.
All reactions