Use onAfterUiUpdate where possible

This commit is contained in:
Aarni Koskela
2023-05-25 09:09:13 +03:00
parent bc53ecf298
commit dc7a1bbb1c
7 changed files with 7 additions and 9 deletions

View File

@@ -170,7 +170,7 @@ function modalTileImageToggle(event) {
event.stopPropagation();
}
onUiUpdate(function() {
onAfterUiUpdate(function() {
var fullImg_preview = gradioApp().querySelectorAll('.gradio-gallery > div > img');
if (fullImg_preview != null) {
fullImg_preview.forEach(setupImageForLightbox);