dialog.position.js error when opening modals

Created on 30 December 2020, over 3 years ago
Updated 7 December 2023, 7 months ago

Problem/Motivation

When adding new media in CKEditor, scrolling behind the modal generates the following error:

dialog.position.js?v=8.9.11:34 Uncaught TypeError: Cannot read property 'settings' of null
at resetSize (dialog.position.js?v=8.9.11:34)
at later (debounce.js?v=8.9.11:20)

I don't know if this is a problem with core or this module, but disabling this module fixes the error.

Steps to reproduce

  • Using simplytest.me, launch a sandbox with the latest Back to Top module.
  • Enable the Media and Media Library modules.
  • Configure the Basic HTML text format to use the media embed button instead of the image button. Enable the media embed filter.
  • Create a new node and use the "Insert from Media Library" button in the body field editor.
  • .Add a new media item
  • While on that dialogue, scroll the page behind the modal and see the console error in the inspector.
πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jonraedeke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada liquidcms

    I have a custom form open in a modal that i think has been working Well. Recently noticed the overlay appears but modal is hidden. Any slight manual reside of the browser window makes it appear.

    It seems to be more of an issue with FF than with Chrome; but have intermittently seen the issue with Chrome.

    It seems to reliably work for Anon users (but not for admins).

    Disabling Back To Top and it seems to reliably work. Which is odd as BTT is there for Anon.

  • Seeing same behavior,: disabling BackTotop makes it work.

Production build 0.69.0 2024