Project

General

Profile

Actions

Bug #91165

closed

New Content Element Wizard Modal not opening in modal box (if you are to fast)

Added by Josef Glatz about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2020-04-22
Due date:
% Done:

100%

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

Description

Problem/Description

I can open the NCEW (triggered from any page module "+ Content" button between existing content elements) without a modal box the last couple of weeks testing/reviewing the TYPO3 master (10.4.x-dev to be specific) and also in real world 10.4.0 LTS projects at least "once" a day. Looks like a race-condition, where maybe any JS listener is to slow, I don't know I can reproduce it now!.

Since I had to get a feeling of when does that mostly appear, I can say now that it's mostly occurs when I do the following steps:

  1. I am logged in in my TYPO3 backend (Chrome, stable, macOS Mojave, DevTools are open with the Elements Tab, Caches are disabled checkbox is on in network tab)
  2. Page module is opened
  3. I close the editing mode of an content element
  4. the page module is reloading
  5. I see the typical page module with content elements on it
  6. I press on any "+ Content" button, but don't wait to long, click as soon as you see the buttons)
  7. I see the following scenario instead of the nice modal with the nice filter functionality:

resulting problematic screen

Some other key points:

  1. I don't know if it also appears if I close the DevTools (I will check it while working on projects)
  2. I don't know if this only occurs on slow computers™ like mine ;-)
  3. The following console log entries exists (but I'm not sure if they exists because of this shown issue)
    • jquery.clearable.js?bust=1587483197:33 jquery.clearable has been marked as deprecated and will be removed in TYPO3 v11. Use TYPO3/CMS/Backend/Input/Clearable and native HTMLInputElement instead.
    • [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
  4. The content of the NCEW modal is loaded in the #typo3-contentIframe

Acceptance Criteria

  • NCEW modal should open always in modal

NCEW ... New Content Element Wizard


Files

ncew-no-modal-problem-josefglatz.png (172 KB) ncew-no-modal-problem-josefglatz.png resulting problematic screen Josef Glatz, 2020-04-22 07:18

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #91848: modal-dialog by create new content element is brokenClosed2020-07-23

Actions
Actions

Also available in: Atom PDF