Bootstrap Modal dialog Not closing after 10.3.0 Update

Created on 25 June 2024, 5 months ago
Updated 29 August 2024, 3 months ago

Problem/Motivation

An error occurs when attempting to close a modal dialog using deprecated Dialog jQuery events.

Steps to reproduce

Open the bootstrap Modal dialog then try to close the dialog by close button.
Modal is not closing.
You will get the following error in the browser console.

An error occurred during the execution of the Ajax response: TypeError: Cannot read properties of undefined (reading 'dialog')
(anonymous) @ ajax.js?v=10.3.0:1143

dialog-deprecation.js?v=10.3.0:12 Uncaught TypeError: Cannot read properties of undefined (reading 'dialog')
at handle (dialog-deprecation.js?v=10.3.0:12:30)
at dispatch (jquery.min.js?v=3.7.1:2:40035)
at v.handle (jquery.min.js?v=3.7.1:2:38006)
at Object.trigger (jquery.min.js?v=3.7.1:2:70124)
at jquery.min.js?v=3.7.1:2:70726
at Function.each (jquery.min.js?v=3.7.1:2:3129)
at ce.fn.init.each (jquery.min.js?v=3.7.1:2:1594)
at ce.fn.init.trigger (jquery.min.js?v=3.7.1:2:70701)
at HTMLDivElement. (bs4_modal.dialog.js?v=10.3.0:148:17)
at HTMLDivElement.dispatch (jquery.min.js?v=3.7.1:2:40035)

Proposed resolution

dialog-deprecation.js attempts to find the dialog instance at event.dialog, but that's not where the property exists. It's actually at $event.dialog

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

๐Ÿ› Bug report
Status

Closed: works as designed

Version

11.0 ๐Ÿ”ฅ

Component
Ajaxย  โ†’

Last updated about 16 hours ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Sunil Chaurasiya

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024