mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-03 16:10:31 +00:00
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
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user