TypeError when the element is missing in the DOM

Created on 7 July 2025, 25 days ago

Problem/Motivation

When using the element in an multi-step AJAX form, I encountered a situation when the field was not present in the form anymore, but the JS was still executing and throwing a TypeError because the ReactDOM.render function was not supplied a DOM element (see attachmed screenshot).

Proposed resolution

Skip rendering when the element is not found in the DOM.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia gresko8

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

Comments & Activities

Production build 0.71.5 2024