#103972"this.createRenderRoot is not a function" JavaScript error for the image focusArea with Firefox
Description
Hi everyone.
When using Firefox in the backend, and when you try to edit an Image with a focusArea, you get several JS errors:- Uncaught TypeError: this.createRenderRoot is not a function
- Uncaught TypeError: this.pointerEventNames is undefined
- Uncaught TypeError: this.createRenderRoot is not a function
- Setup a new TYPO3 12 lts (composer or classic)
- Install Firefox browser (it works fine in Chrome)
- Install the introduction package
- Add the tsConfig (see below) to the root page
- Go to the backend with the firefox bowser
- Add a new image element somewhere on any page
- Add an image to the element
- Open the image in the image editor
The focusArea does not render, and you get the JS error from above.
The used tsConfig:
TCEFORM.sys_file_reference.crop.config.cropVariants {
default {
title = Default
selectedRatio = NaN
focusArea {
x = 0.45
y = 0.45
width = 0.1
height = 0.1
}
}
}
See also : #103048
Tobi
Reviews 6
- 12.4 89623[BUGFIX] Cleanup focusArea boxes when switching aspect ratio
- 13.4 89622[BUGFIX] Cleanup focusArea boxes when switching aspect ratio
- main 89620[BUGFIX] Cleanup focusArea boxes when switching aspect ratio
- 12.4 89256[BUGFIX] Load `draggable-resizable-element` in top-level scope
- 13.4 89255[BUGFIX] Load `draggable-resizable-element` in top-level scope
- main 89140[BUGFIX] Load `draggable-resizable-element` in top-level scope