There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e7abd31b-bd35-4dc3-8d3c-7a16006fab03 XWIKI-22987 Open

Avatar edition modal does not have the proper modal markup

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-abbe8957-ec17-4f13-ac99-7183a290a9d9 Charpentier Lucas on 11/Jun/25 15:21
 

Funny thing. This kind of xdialog is generated using prototypejs. It's hidden at first (with prototype .hide() ), and then shown instantly in some cases (with prototype .show() ). Buttttt... There's a collision with up to date HTML, dialog HTML elements have their own `.show()` function that does native dialog things.

Since the objects use the same reference, AFAIK, there's no easy way to ask for the prototypeJS show function when the element is a dialog...

The `.show()` function from prototype is well documented and simple enough, I think I'll just hard-code what it was supposed to do in places where it does not work as expected anymore with the tag change.