XB UI doesn't save the media/image or fields that involve Drupal javascript.

Created on 3 February 2025, 2 months ago

Overview

Currently, if one tries to edit a created page(xb_page) and tries to upload media under Page data form in XB UI, media does get uploaded into the form but doesn't get saved into Drupal.

We encountered this while generating a path alias based on title in https://www.drupal.org/project/experience_builder/issues/3499960 โœจ Creating a page generates the URL path dynamically when editing. Active .

This applies to any kind of fields that are ajaxified or are getting updated dynamically by JS(not XB), but the actual JS attached to Drupal forms. So this leaves media field unusable.

Steps to reproduce

  • Create a new xb_page entity.
  • Open the XB UI for this page; /xb/xb_page/{pageId}.
  • On page data form, upload a new media under SEO settings.
  • Once done, click on Publish
  • Observe that all other fields got saved but not the Media field.

Proposed resolution

XB should take into account the fields that get updated by Drupal's internal JS(either via AJAX or client side JS).
Field values should be in sync with Redux state.

User interface changes

๐Ÿ› Bug report
Status

Active

Version

0.0

Component

Redux-integrated field widgets

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