fix: close start menu popover on repeated click (#2784)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled

When the Start button is clicked while the popover is already open,
close it instead of doing nothing. This fixes the toggle behavior
on Android Chrome where the menu stays open on repeated taps.

The `.popover-launcher` removal triggers the UIPopover remove event
handler which automatically cleans up the `has-open-popover` class.

Fixes #1681
This commit is contained in:
Trevin Chow
2026-04-16 09:44:00 -07:00
committed by GitHub
parent 6f54edbc76
commit 4130fc4104
+2 -1
View File
@@ -90,6 +90,7 @@ async function UITaskbar (options) {
// skip if popover already open
if ( $(item).hasClass('has-open-popover') )
{
$('.popover-launcher').remove();
return;
}
@@ -759,4 +760,4 @@ $(document).ready(function () {
});
});
export default UITaskbar;
export default UITaskbar;