Closed simplecommerce closed 4 years ago
Hey! Let me check that out, I was going to resolve some tab issues today anyway.
I tried to look at it and did some tests, but could not figure out why some of the components could not be detected properly.
Thanks! Sorry I haven't had time to look into this, I have 3 deadlines to meet next week. I may be able to check it out this weekend.
Hi, for the moment, I created a copy of the code manually, and it seems to work after I define each component with the isComponent function, not really sure why the one in the plugin isn't working.
I found another issue which isn't really related, but I am hoping they will answer in the grapesjs branch.
It's the ID attribute, it keeps regenerating when loading components, importing, etc. Which causes issues because the tabs in bootstrap uses ID to be clickable, so when we reload the components by using the components props in the editor on the initial run, it breaks the tabs.
Did you ever encounter this and fixed it somehow?
I havent seen this, but I really havent used the tabs. Let me check this out also while I'm at it.
I saw your post in GrapesJS, hopefully we will get an answer.
Here is my post in regards to the ID changing, I was able to patch mine, but I hope they will give a better way to handle it.
Hello @simplecommerce, can you please check if the new version fixes this issue?
Hi @kaoz70, sorry I haven't had time to test it yet, when it wasn't working properly, I basically redid my own version using similar code, but I will try to find some time this week-end to test it for sure, thanks for the follow-up! :)
I'm closing this issue for now, if you see that the issue persists feel free to reopen it
Hi,
I am doing some tests with the Tabs block and I noticed an issue.
When I drag and drop it in the canvas, this is the code I see when I inspect it.
When I call editor.getHtml(), I get the following:
When I pass that in the value configuration on my editor and wait for it to load.
I get the following code when I inspect the canvas again:
As you can see upon inspection, we seem to have lost the data-gjs-type tabs and tabs-panes and tabs-tabs-panes, they all have converted to div.
This causes an issue because when I want to edit the tabs again, I can no longer click on the tab to display the content for each tab itself.
I am not sure if you can reproduce this on your end?