Detach error when form is in core dialog

Created on 30 August 2020, about 5 years ago
Updated 21 September 2025, 24 days ago

Problem/Motivation

I am getting a console message when I open a dialog with a form using the range slider.

Steps to reproduce

Using D9
Unfortunately, I don't have a minimum case yet, but I am using layout_paragraphs which loads paragraphs forms in a dialog. Simply opening the form gives the following console message:

drupal.js?v=9.0.3:16 Uncaught TypeError: $(...).find(...).findOnce(...).rangeslider is not a function
    at Object.detach (<anonymous>:47:84)
    at drupal.js?v=9.0.3:43
    at Array.forEach (<anonymous>)
    at Object.Drupal.detachBehaviors (drupal.js?v=9.0.3:40)
    at Drupal.AjaxCommands.insert (ajax.js?v=9.0.3:540)
    at Drupal.AjaxCommands.openDialog (dialog.ajax.js?v=9.0.3:79)
    at ajax.js?v=9.0.3:443
    at Array.forEach (<anonymous>)
    at Drupal.Ajax.success (ajax.js?v=9.0.3:441)
    at Object.success (ajax.js?v=9.0.3:239)
detach @ VM4277:47
(anonymous) @ drupal.js?v=9.0.3:43
Drupal.detachBehaviors @ drupal.js?v=9.0.3:40
insert @ ajax.js?v=9.0.3:540
Drupal.AjaxCommands.openDialog @ dialog.ajax.js?v=9.0.3:79
(anonymous) @ ajax.js?v=9.0.3:443
Drupal.Ajax.success @ ajax.js?v=9.0.3:441
success @ ajax.js?v=9.0.3:239
t.success @ jquery.form.js:278
c @ jquery.min.js?v=3.5.1:2
fireWith @ jquery.min.js?v=3.5.1:2
l @ jquery.min.js?v=3.5.1:2
(anonymous) @ jquery.min.js?v=3.5.1:2
setTimeout (async)
Drupal.throwError @ drupal.js?v=9.0.3:15
(anonymous) @ drupal.js?v=9.0.3:45
Drupal.detachBehaviors @ drupal.js?v=9.0.3:40
insert @ ajax.js?v=9.0.3:540
Drupal.AjaxCommands.openDialog @ dialog.ajax.js?v=9.0.3:79
(anonymous) @ ajax.js?v=9.0.3:443
Drupal.Ajax.success @ ajax.js?v=9.0.3:441
success @ ajax.js?v=9.0.3:239
t.success @ jquery.form.js:278
c @ jquery.min.js?v=3.5.1:2
fireWith @ jquery.min.js?v=3.5.1:2
l @ jquery.min.js?v=3.5.1:2
(anonymous) @ jquery.min.js?v=3.5.1:2
load (async)
send @ jquery.min.js?v=3.5.1:2
ajax @ jquery.min.js?v=3.5.1:2
e.fn.ajaxSubmit @ jquery.form.js:337
Drupal.Ajax.eventResponse @ ajax.js?v=9.0.3:333
(anonymous) @ ajax.js?v=9.0.3:276
dispatch @ jquery.min.js?v=3.5.1:2
v.handle @ jquery.min.js?v=3.5.1:2
trigger @ jquery.min.js?v=3.5.1:2
(anonymous) @ jquery.min.js?v=3.5.1:2
each @ jquery.min.js?v=3.5.1:2
each @ jquery.min.js?v=3.5.1:2
trigger @ jquery.min.js?v=3.5.1:2
(anonymous) @ layout-paragraphs-widget.js?qfv0xm:543
dispatch @ jquery.min.js?v=3.5.1:2
v.handle @ jquery.min.js?v=3.5.1:2

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scottsawyer Atlanta

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.

No activities found.

Production build 0.71.5 2024