BUG: Command core:component-enter not working in all the cases
Question
WARNING
READ and FOLLOW next 3 steps, then REMOVE them before posting the issue
- Follow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.md
- Do a quick SEARCH first, to see if someone else didn't open the same issue
- All relative statements/questions have to be filled/answered, otherwise, the issue might be CLOSED
- JSFiddle Starter template https://jsfiddle.net/szLp8h4n
- CodeSandbox Starter template https://codesandbox.io/s/1r0w2pk1vl
Version: 0.16.44
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?
- Yes (attach)
- [ x] No
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
Answers (1)
Thanks @moises-flowize that will be fixed in the next release https://github.com/artf/grapesjs/commit/ac96298add119c4f4e000967ab3332f9ad711613
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3463
BUG: inspector overflow broken
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #3668
BUG: Cant Reset Canvas after Moving/scaling it
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #3673
BUG: option resizable:true will change all the same components in canvas.
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
Issue #3700
BUG: setting draggable: 'wrapper' does not drop in wrapper
WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grape...
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.