Project

General

Profile

Actions

Bug #101750

closed

Console error when tabbing through EXT:form inspector of a new form element, that has not yet been persisted.

Added by Benjamin Franzke 11 months ago. Updated 5 days ago.

Status:
Closed
Priority:
Should have
Category:
Form Framework
Start date:
2023-08-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Tabbing through an elemenet is considered an "input" by
the browser, which is why the "input" even is triggered.
The result is an empty input element (as before), but
an intent is made to delete the underlying property
from the form element object model.
When the object model is empty (remeber, it is a new element),
and an input field refers to a nested property
(e.g. properties.fluidAdditionalAttributes.placeholder)
removing an element (e.g. 'placeholder')
will fail when the parent has not yet been set
(e.g. properties.fluidAdditionalAttributes)

core.js?bust=1692909490:911 Uncaught TypeError: Cannot convert undefined or null to object
    at Object.unset (core.js?bust=1692909490:911:39)
    at HTMLInputElement.<anonymous> (inspector-component.…=1692909490:1390:45)
    at HTMLInputElement.dispatch (jquery.js?bust=1692909490:5468:27)
    at elemData.handle (jquery.js?bust=1692909490:5272:28)
unset    @    core.js?bust=1692909490:911
(anonymous)    @    inspector-component.…ust=1692909490:1390
dispatch    @    jquery.js?bust=1692909490:5468
elemData.handle    @    jquery.js?bust=1692909490:5272

Files

form-console-error-tab-through.png (133 KB) form-console-error-tab-through.png Benjamin Franzke, 2023-08-25 04:30
Actions #1

Updated by Gerrit Code Review 11 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80671

Actions #2

Updated by Gerrit Code Review 11 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80729

Actions #3

Updated by Gerrit Code Review 11 months ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80733

Actions #4

Updated by Anonymous 11 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack 5 days ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF