-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Form field type "modal_article" does not close modal properly #36169
Comments
The behaviour is similar when new article is created and "Save and Close" button is clicked. |
I remember seeing that before. Sorry I dont remember the exact fix but it should not be possible to close the modal by clicking on the background layer |
perhaps this #35624 |
Then it will work the same way like in Menu Manager (for "Create" button):
Which is still better than freezing screen. |
It looks like, it is not the same case, because there is "data-bs-backdrop" included yet For example for "Create" button which even does not close the window: |
The problem is, two backdrop boxes are opened and one is closed: It can be seen even on the background which is much darker (2x background) So the problem is, some process makes the background twice, but only closes one when clicked. And what is interesting: Select button creates two backdrops and both are closed with Close button I don't know the function in details but it seems like the first button cares about all backdrops but the second only about one. The Close button created by Create button does not include "dat-bs-dismiss": Chaning from: can solve the problem for this part, but the part with selecting article title is still unresolved as applying "dada-bs-dissmiss" on URL link in iframe does not work. |
This is the problematic part: It works with: media/vendor/bootstrap/js/modal.js ✅ But does not work with: The difference is, the first one creates only one instance of:
The second creates two instances Joomla 4.0.4 stable package. |
Closing as having a pull request. Please test #36178 . Thanks in advance. |
Steps to reproduce the issue
When using form field type "modal_article" e.g. in config.xml, it does not close modal window properly after selecting article. Backgroud (modal backgrop) does not allow to continue in work.
TEST INSTRUCTIONS: we can use e.g. Contact component to demonstrate this issue:
Open following file:
administrator/components/com_contact/config.xml
Change line 4 FROM:
TO:
And below this fieldset add some dummy parameter:
Save and try to add article in Contact Parameters:
EDIT: Try to enable and disable debug mode when testing, this can produce different behaviour: #36169 (comment)
Expected result
Like in Joomla 3, when selecting article, modal will be properly closed.
Actual result
Modal is not closed when selecting article,
System information (as much as possible)
Joomla 4.0.4
The text was updated successfully, but these errors were encountered: