Details component should hide elements and not remove them from DOM on collapsing.

Created on 23 January 2025, 7 days ago

Overview

While working on #3497000, we discovered that if a Details component is set to '#open' => FALSE, on rendering it using React, elements inside Detail are removed from DOM and not hidden(which is not the case with native Drupal UI). This leads to elements not being available and js not getting attached.
Reference: https://git.drupalcode.org/project/experience_builder/-/merge_requests/5...

Proposed resolution

Refactor the details component so it's not removing the elements from the DOM, but hiding them instead
Ref: https://git.drupalcode.org/project/experience_builder/-/merge_requests/5...

User interface changes

Feature request
Status

Active

Version

0.0

Component

Page builder

Created by

🇮🇳India amangrover90

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024