getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.27k stars 167 forks source link

Uncaught TypeError: t.target.closest is not a function #4233

Closed GiantCrocodile closed 2 years ago

GiantCrocodile commented 2 years ago

Description

Console is spammed with this error since v3.6.3.

Expected behavior
No error thrown.

Screenshots
grafik

To reproduce

  1. Go to a page with a text field, user field, tag field, date field and a structure
  2. click in an existing block in the text field
  3. Error is thrown in browser console (see screenshot)

Your setup

v3.6.3

Console output
Uncaught TypeError: t.target.closest is not a function onOutsideFocus http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/index.js:1 emit http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/vendor.js:12 emit http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/vendor.js:12 focus http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/index.js:1 install http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/index.js:1 use http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/vendor.js:6

http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/index.js:1 [index.js:1:304997](http://localhost/kirby/media/panel/d569c10cce8640c7659eb139caaeb416/js/index.js) **Your system (please complete the following information)** WAMP with php8.0 and latest Firefox **Additional context** this is a multilang page, error didn't occur before updating
afbora commented 2 years ago

I can reproduce the issue only with Firefox. No console error for Chrome.

afbora commented 2 years ago

This issue occurs when you enter or click on a page includes a block field from outside (another browser page/tab or anywhere except current browser page).

bastianallgeier commented 2 years ago