From 0c2bcb773cdd55d385e68d59c8d43a066c029895 Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Fri, 20 Jun 2025 23:13:09 -0700 Subject: [PATCH] fix: Revert auto-hide dropdown to fix popover regression and improve bash poller to handle strings better. (#1017) --- src/components/menus/shared/dropdown/index.tsx | 3 --- src/lib/poller/BashPoller.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/menus/shared/dropdown/index.tsx b/src/components/menus/shared/dropdown/index.tsx index f8b2b7d..f19d567 100644 --- a/src/components/menus/shared/dropdown/index.tsx +++ b/src/components/menus/shared/dropdown/index.tsx @@ -32,9 +32,6 @@ export default ({ self.visible = false; } }} - onFocusOutEvent={(self) => { - self.visible = false; - }} onButtonPressEvent={(self, event) => { const buttonClicked = event.get_button()[1]; diff --git a/src/lib/poller/BashPoller.ts b/src/lib/poller/BashPoller.ts index 599de96..346c60f 100644 --- a/src/lib/poller/BashPoller.ts +++ b/src/lib/poller/BashPoller.ts @@ -57,7 +57,7 @@ export class BashPoller { */ public execute = async (): Promise => { try { - const res = await execAsync(`bash -c "${this._updateCommand}"`); + const res = await execAsync(['bash', '-c', this._updateCommand]); this._targetVariable.set(await this._pollingFunction(res, ...this._params)); } catch (error) { console.error(`Error executing bash command "${this._updateCommand}":`, error);