Issue Bug Closed

#100896Console error triggered after click on edit button for a translated page

Julian Mair 05/18/23, 07:26 updated 01/31/25, 12:05

Description

Upon clicking the edit button on a translated page, the UI overlay remains while the web console generates an error.

Error message:

VM5260 form-engine.js:13 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'disabled')
    at VM5260 form-engine.js:13:12668
    at NodeList.forEach (<anonymous>)
    at Object.initializeLocalizationStateSelector (VM5260 form-engine.js:13:12438)
    at Object.reinitialize (VM5260 form-engine.js:13:12217)
    at VM5260 form-engine.js:13:21565

*Possible solution:*
On the line in file: https://github.com/TYPO3/typo3/blob/v12.4.1/Build/Sources/TypeScript/backend/form-engine.ts#L743
Wouldn’t it be more appropriate for the condition to be the following, rather than undefined?

if (input === null) {
System:
  • Typo3 v12.4.1
  • PHP 8.1

Reviews 4