No Code Attached Yet
avatar Kubik-Rubik
Kubik-Rubik
21 Sep 2021

Steps to reproduce the issue

Easy to reproduce:

Click on the link "Add module to the dashboard" on the main dashboard in the backend to open a modal window. This modal window uses the backdrop option with the value "static". When the backdrop option is set to static, the modal should not close when clicking outside it.

Expected result

Modal is not closed when clicking outside it. This option works fine in Joomla! 3.x.

Actual result

Modal is closed.

System information (as much as possible)

Tested with Joomla! 4.0.3 in Chrome and Firefox.

avatar Kubik-Rubik Kubik-Rubik - open - 21 Sep 2021
avatar Kubik-Rubik Kubik-Rubik - change - 21 Sep 2021
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Sep 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Sep 2021
avatar dgrammatiko
dgrammatiko - comment - 21 Sep 2021

Rename the data-backdrop="static" to data-bs-backdrop="static" and it will work as expected

avatar Kubik-Rubik
Kubik-Rubik - comment - 21 Sep 2021

Hey Dimitris,

I know, but this is not possible with HTMLHelper::_('bootstrap.renderModal', ....) and it must be fixed there for the new syntax in Bootstrap 5.

Cheers

avatar dgrammatiko
dgrammatiko - comment - 21 Sep 2021

I know, but this is not possible with HTMLHelper::_('bootstrap.renderModal', ....)

I don't understand what was impossible, it was literally a string replace: #35626

avatar Kubik-Rubik Kubik-Rubik - close - 21 Sep 2021
avatar Kubik-Rubik
Kubik-Rubik - comment - 21 Sep 2021

We have a solution with #35626.

Thanks!

avatar Kubik-Rubik Kubik-Rubik - change - 21 Sep 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-09-21 15:03:56
Closed_By Kubik-Rubik

Add a Comment

Login with GitHub to post a comment