Skip to content

Commit

Permalink
Fix spacing issue in Settings Search input
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanml committed Jan 9, 2023
1 parent 174d3db commit de8aba9
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 de8aba9

Please sign in to comment.