JS error when Drag and Dropping

Created on 25 September 2024, about 2 months ago

Problem/Motivation

I am encountering a JS error after drag and dropping paragraphs. The error occurs when you attempt to click to place the dragged paragraph, which causes the item to never be able to be released from the drag and drop.

Uncaught TypeError: Cannot read properties of undefined (reading 'querySelector') at builder.js?skdp84:131:21 at Array.forEach (<anonymous>) at updateMoveButtons (builder.js?skdp84:127:25) at updateUi (builder.js?skdp84:159:5) at HTMLDivElement.<anonymous> (builder.js?skdp84:546:11) at HTMLDivElement.dispatch (jquery.min.js?v=3.7.1:2:40035) at v.handle (jquery.min.js?v=3.7.1:2:38006) at Object.trigger (jquery.min.js?v=3.7.1:2:70124) at HTMLDivElement.<anonymous> (jquery.min.js?v=3.7.1:2:70726)

Steps to reproduce

Proposed resolution

As the js error suggests, first check component array is not empty before interacting with it. Wrap with a length if check.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024