BUG: A border on the mj-column is shown twice in the editor
See original GitHub issueWhat browser are you using?
Chrome 102.0.5005.61
Reproducible demo link
https://codepen.io/adiux/pen/BaYrEXR?editors=1111
Describe the bug
How to reproduce the bug?
- Add grapesjs-mjml to the project with any version newer than 0.5.6
- Add a border to a section. E.g.:
<mj-column border="4px solid #F45E43">
- Open MJML template with grapesjs
What is the expected behavior? only one border is shown:
What is the current behavior? two borders are shown:
If is necessary to execute some code in order to reproduce the bug, paste it here below:
// Working
import grapesjsMjml from "https://cdn.skypack.dev/grapesjs-mjml@0.5.6";
// Not working
import grapesjsMjml from "https://cdn.skypack.dev/grapesjs-mjml@0.5.7";
import grapesjsMjml from "https://cdn.skypack.dev/grapesjs-mjml@0.6.0";
Note: The rendered HTML is fine. It is only an issue with the view in the editor.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How do I remove the double border on this table?
Best solution : Use border-collapse:collapse; for the <table> element. Share.
Read more >One Column in datatable is displayed twice
Hello Allen, now almost everything works despite one little thing. the first column in my table is displayed twice.
Read more >Word Table Borders Issue - Microsoft Community
In the Borders and Shading dialog, select Table from the Apply to: dropdown and then click on None in the Setting column. The...
Read more >Change border color, width, and style in Outlook table - Ablebits
data-set-style="border: solid #aeabab; border-width:~%WhatToEnter[{dataset:'Dataset with discounts',column:'Border width'}] – with this HTML ...
Read more >Fix Excel Conditional Formatting Duplicate Rules
I'll show you how that happens, and an easy way to fix those ... In columns A:E, add a blue top border if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I thought i have found a solution, but it cause bugs to other attributes.
Even before #270 the border was added to the table inside the div. With the solution of adding the styles to the div the border is being added to both of them. This is whats causing this bug. I’m not finding where this is passed to the inner element. But when you change the padding of the column the element is rendered again and the problem is fixed. Something in the builtin property of border is causing this. Border-radius is also passed to the table and not rendered.