From 1fafed06a21b97d45e6f6b8f7b005bd8130f18e4 Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:59:13 -0700 Subject: [PATCH] bump search delay, autoselect search text on open --- www/src/ts/virtual_machine/device.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/src/ts/virtual_machine/device.ts b/www/src/ts/virtual_machine/device.ts index 34c0ca7..55c52a4 100644 --- a/www/src/ts/virtual_machine/device.ts +++ b/www/src/ts/virtual_machine/device.ts @@ -514,7 +514,7 @@ export class VMDeviceList extends BaseElement { this.filterTimeout = setTimeout(() => { that.filter = that.filterInput.value; that.filterTimeout = undefined; - }, 200); + }, 500); } performSearch() { @@ -713,6 +713,7 @@ export class VMAddDeviceButton extends BaseElement { _handleAddButtonClick() { this.drawer.show(); + (this.drawer.querySelector('.device-search-input') as SlInput).select(); } }