mjml
mjml copied to clipboard
Social group mode (vertical/horizontal) doesn't change in editor
I tested the vertical mode of the social group in my project and the demo as well and the same problem occurs when selecting the vertical mode, it doesn't change in the editor. But after converting to HTML the vertical mode works. Thanks.
The issue is that the style attributes are hardcoded into to view with
view: {
...coreMjmlView,
tagName: 'table',
attributes: {
style: 'pointer-events: all; float: none; display: inline-table;',
},
As you can see display: inline-table and the floar properties are set in the view, regardless of the orientation set on the Social component.
Actually the settings (Horizontal/Vertical) is passed to the Social MJML component correctly and it is, in fact, rendering horizontal and Vertical as it should, but we are just missing sending the style properties to the SocialElement component.
@artf how do we do that?
@artf any update on this? I also faced the same issue.
@kickbk @viniciiusds Did you guys find the solution for this issue? @artf What's the alternate solution for this issue? Help Needed