Uncaught TypeError: Cannot read properties of undefined (reading 'value')

Created on 13 July 2022, over 2 years ago
Updated 30 May 2024, 6 months ago

Problem/Motivation

Unable to drop fields in an empty area from the display mode.

Steps to reproduce

Using a clean Drupal 9.4 install

1. Choose a content type to edit (I am using Article content type).
2. Go to manage display mode.
3. Turn on the display mode: "Search result highlighting input" and navigate there.
4. If there are fields already enabled, drag them in the disabled section.

When you trying to drag a single field for example "Links" into other section above, the mouse pointer stays on dragging mode and doesn't let you drop the field. Also this produces a console log error message.

field_ui.js?v=9.4.2:173 Uncaught TypeError: Cannot read properties of undefined (reading 'value')
    at Drupal.fieldUIDisplayOverview.field.regionChange (field_ui.js?v=9.4.2:173:122)
    at Drupal.tableDrag.onDrop (field_ui.js?v=9.4.2:99:40)
    at Drupal.tableDrag.dropRow (tabledrag.js?v=9.4.2:493:12)
    at HTMLDocument.<anonymous> (tabledrag.js?v=9.4.2:95:19)
    at HTMLDocument.dispatch (jquery.min.js?v=3.6.0:2:43064)
    at v.handle (jquery.min.js?v=3.6.0:2:41048)

I have included screenshots as well

🐛 Bug report
Status

Closed: duplicate

Version

11.0 🔥

Component
Field UI 

Last updated 17 days ago

Created by

🇳🇱Netherlands jeanrukundo

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024