Bricks Version: 1.5 RC Browser: Chrome 90 OS: macOS / Windows / Linux / etc. URL: local
Hey guys,
I’m not sure if this is intended or if it is a bug, but I noticed the data-attributes are not being output on the elements inside the builder view - which leads the scripts that depend on it to be non-working. While everything is working on the frontend, it makes the backend experience quite messy.
Yes, we are aware of this issue and it will be sorted out in a future release. I’ve added your message to the task in our bug tracker so we could notify you as soon as we get news.
@luistinygod second this, any news on that? it still feels very weird to add some extra JS to put an attribute to an element, when it can be output natively.
I presume this happening for both custom attributes added via the builder UI as well as anything using the render_attributes filter? That seems to be my experience, but just making sure I’m not misunderstanding what I’m seeing.
@timmse Hi This would be a really important thing to be honest. My complete layout is done with a custom class on the tag. It work on front-end but in builder mode, it’s not possible to work there. I have to add the class each time manually via the developer tools of the browser.
As manu other Bricks Builder users, I also noticed this issue. While working on backend, we need to see every rendering in the Canvas, to have an exact result of what will be displayed client side. Moreover, nowadays attributes are vitals; we can’t work without them anymore; they are absolutely necessary. Please, fix that issue as soon as possible for allowing us working in best conditions.
This really needs to get fixed. For me however, the data-attributes are rendered in the builder on single templates but not on section templates. Also scripts added to the $scripts array on custom elements do not execute for me. Same thing there, they execute in single template builder but not in section template builder.
Hey team, our agency is porting its framework to bricks. Like many others here, this issue is somewhat of a show-stopper for us. Could we get an update on progress with this one please? Thx
Awesome, while looking into it, can you look into the “data-src” attribute not showing on a div element as well? Other “data” attributes show just fine on the front end, but specifically, “data-src,” when it contains a value on a div element, does not render on the front end.
As per my email reply, yours is a different one which the data-src being removed by Bricks Lazyload JS.
Already opened a new bug tracker for your issue.
Is this specific to data-attributes? I ask because I added an HTML attribute (‘open’) to a Details element with the expectation the contents will be shown in the builder, but they do not. It displays appropriately on the frontend.