IMPLEMENTED: Data-attributes not showing in the DOM structure of the backend

Then this topic should not be marked as Duplicate:

Hi, here are some bugs I have found with the render_attributes filter in Bricks 1.10:

  1. It is not working with images.
  2. It is not working with sections, containers, blocks and divs inside the editor, but it is working in the front end.
  3. In elements with children like forms, price table… Attributes are also rendered in the children.
  4. In nestable or video elements or elements with children (forms, price table) the attributes are rendered in the editor without reloading. In all other elements the page has to be reloaded.
    4.1 When the attribute is rendered, you save it and reload the editor, when you delete the control the attribute is not deleted. When there is no active control on the element and it has not been rendered everything works fine, when adding, activating and deleting controls, the attributes are rendered or deleted.

I have recorded a video explaining each point: Sample Page (Builder) - 8 August 2024 | Loom

Hi @JohnDiaz,

thank you for your report. I tested all points and

  1. yes, you are right, it does not work on the image element. I will add this to our internal bug tracker.
  2. We are also aware of this and we have an internal task to solve/improve it.
  3. Yep, I tested with a form, and it does apply to all. I’ll also add it as a task.
  4. I can see this. The attributes are added on the page load, that’s why this is happening. But then, some elements are rendered dynamically, so it works for them. I’ll mention this in the bug report also, to see if we can improve this.

Thanks for the video and report!

Best regards,
M

1 Like