You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can get the version by typing grapesjs.version into the console
Are you able to reproduce the bug from the demo?
Yes
[X ] No
What is the expected behavior?
When using the command "core:component-enter" it should select the first child of a container
Describe the bug detailed
If the element selected is a P or H1, the ones that are inline elements it throws an error In the console.
Also, if the element select is a container but the first child is an HTML comment, throws the same error.
Are you able to attach screenshots, screencasts or a live demo?
The text was updated successfully, but these errors were encountered:
moises-flowize
changed the title
BUG:
BUG: Command component-enter not working in all the cases
Jun 2, 2021
moises-flowize
changed the title
BUG: Command component-enter not working in all the cases
BUG: Command core:component-enter not working in all the cases
Jun 2, 2021
WARNING
READ and FOLLOW next 3 steps, then REMOVE them before posting the issue
Version:
0.16.44
You can get the version by typing
grapesjs.version
into the consoleAre you able to reproduce the bug from the demo?
What is the expected behavior?
When using the command "core:component-enter" it should select the first child of a container
Describe the bug detailed
If the element selected is a P or H1, the ones that are inline elements it throws an error In the console.
Also, if the element select is a container but the first child is an HTML comment, throws the same error.
Are you able to attach screenshots, screencasts or a live demo?
I fixed creating my own command out of the code of yours at https://github.com/artf/grapesjs/blob/dev/src/commands/view/ComponentEnter.js:
I attach the JS file with the code of my command
component-enter.txt
The text was updated successfully, but these errors were encountered: