Closed (fixed)
Project:
Project Browser
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Jul 2024 at 00:04 UTC
Updated:
29 Aug 2024 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chrisfromredfinComment #5
omkar-pd commentedComment #6
atul_ghate commentedI will review this issue.
Comment #7
snehal-chibde commentedhello @omkar-pd, I have tested the code in version 2.0.x-dev and now the modals are getting removed from DOM on click of close button. Added a video recording for reference.
Comment #8
atul_ghate commentedHi
I have reproduced the issue successfully...
I have tested MR 562 on the Drupal 10.3 version,
The MR is applied cleanly....
Test Result:
Modals created by Project Browser do have their HTML removed from the DOM after they're closed.
RTBC+1
Comment #10
chrisfromredfinI found that this would not remove the HTML if the dialog was closed using ESC. Using the Drupal.dialog() api, you can specify a handler to invoke when the modal is closed. I moved the code into there and it seems to be working.
Could someone re-test this with the latest, review my code, ensure it's working, and set it back to RTBC?
Comment #11
omkar-pd commentedTests failed.
Comment #12
chrisfromredfinNeeds manual tests, but automated tests were failing for flakiness only (retests passed).
Comment #13
omkar-pd commentedTested this locally. Removes Modals dialog on Esc and on close.
Comment #14
snehal-chibde commentedhello @chrisfromredfin, I have tested the code in version 2.0.x-dev and now the modals are getting removed from DOM on click of ESC button and Close Icon both. Added a video recording for reference.
Comment #16
chrisfromredfinThanks all, a good little cleanup!