When I click the Edit button the modal comes up and I first see the article list which then changes to the edit page.
Why is the article list shown before the edit screen? I would expect the edit screen without seeing the article list first.
Summary of Changes
When an iframe is loaded inside a modal, this one is destroyed first and then reloaded to use then Jlayout modal iframe, but it could return the issue reported (see Testing Instructions before patch, or @roland-d comment above) when the script is included in modal event handler "shown".
Adding the iframe rendering inside a "show" event (before the modal has been made visible to the user), solves this issue.
Testing Instructions
Before Patch:
Open any Edit modal (article, category, module, contact, newsfeed) : can be found in menu item type "Single ****" or in association tab of article, category, newsfeed, contact edit page
After click on "Edit" button (the layout loads directly) click on "Close"
Then click again on "Edit" button, and you may see the list view 1/2 second before the edit layout loads.
After Patch:
Do the same: the edit layout loads each time directly, and the list (contacts, articles...) does not show up anymore before edit view
I have tested this item✅ successfully on 6ded0a7
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10560.