fix: Revert auto-hide dropdown to fix popover regression and improve bash poller to handle strings better. (#1017)

This commit is contained in:
Jas Singh
2025-06-20 23:13:09 -07:00
committed by GitHub
parent d563cdb1f6
commit 0c2bcb773c
2 changed files with 1 additions and 4 deletions

View File

@@ -32,9 +32,6 @@ export default ({
self.visible = false;
}
}}
onFocusOutEvent={(self) => {
self.visible = false;
}}
onButtonPressEvent={(self, event) => {
const buttonClicked = event.get_button()[1];

View File

@@ -57,7 +57,7 @@ export class BashPoller<Value, Parameters extends unknown[]> {
*/
public execute = async (): Promise<void> => {
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);