From 64eae7d3f0b1ab95bf5f229b64887f512ff3b7d2 Mon Sep 17 00:00:00 2001 From: ryanml Date: Mon, 9 Jan 2023 13:54:28 -0700 Subject: [PATCH] Fix spacing issue in Settings Search input (#17108) Co-authored-by: Brad Decker --- ui/pages/settings/settings-search/settings-search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pages/settings/settings-search/settings-search.js b/ui/pages/settings/settings-search/settings-search.js index 545068aa566b..45cd6c079b25 100644 --- a/ui/pages/settings/settings-search/settings-search.js +++ b/ui/pages/settings/settings-search/settings-search.js @@ -44,7 +44,7 @@ export default function SettingsSearch({ const handleSearch = (_searchQuery) => { const sanitizedSearchQuery = _searchQuery .replace(/[^A-Za-z0-9\s&_]/gu, '') - .trim(); + .trimStart(); setSearchQuery(sanitizedSearchQuery); if (sanitizedSearchQuery === '') { setSearchIconColor('var(--color-icon-muted)');