Actions
Bug #13376
openWPopupMenu displaying upon hiding
Start date:
01/06/2025
Due date:
% Done:
0%
Estimated time:
Description
In case that no resource directory is set hiding the pop-up from the WPopupMenu by clicking off it, clicking the button to open it again, or selecting an item will result in the pop-up element still being displayed near the bottom of the page.
In case this is not reproducible, open the developer tools, and disable the cache (otherwise the website will fall back on a previous theme).
This happens due to the JS code:
var j111=Wt4_11_0.$('o97');
j111.style.display='none';
Wt4_11_0.$('o97').wtObj.setHidden(1);
Where WPopupMenu::setHidden()
performs:
if (hidden) {
el.style.position = "";
el.style.display = "";
...
}
This results in "bad" values for all empty strings, clearing the "none" value, where it doesn't.
Since this sets a bad value, with side-effects, we should verify that for other cases where a CSS property is set to ""
, this doesn't lead to edge cases.
Updated by Romain Mardulyn 13 days ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Updated by Romain Mardulyn 13 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Actions