Skip to content

Commit

Permalink
Fix spacing issue in Settings Search input (#17108)
Browse files Browse the repository at this point in the history
Co-authored-by: Brad Decker <[email protected]>
  • Loading branch information
ryanml and brad-decker authored Jan 9, 2023
1 parent b653b4f commit 64eae7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pages/settings/settings-search/settings-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
Expand Down

0 comments on commit 64eae7d

Please sign in to comment.