Skip to content

Commit

Permalink
Only trimEnd for queryInput
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Nov 27, 2024
1 parent a68f897 commit 1812d0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/js/display/search-display-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import * as wanakana from '../../lib/wanakana.js';
import {ClipboardMonitor} from '../comm/clipboard-monitor.js';
import {createApiMap, invokeApiMapHandler} from '../core/api-map.js';
import {EventListenerCollection} from '../core/event-listener-collection.js';
import {trimTrailingWhitespacePlusSpace} from '../data/string-util.js';
import {querySelectorNotNull} from '../dom/query-selector.js';

export class SearchDisplayController {
Expand Down Expand Up @@ -238,7 +237,7 @@ export class SearchDisplayController {
this._searchBackButton.hidden = !showBackButton;

if (this._queryInput.value !== query) {
this._queryInput.value = trimTrailingWhitespacePlusSpace(query);
this._queryInput.value = query.trimEnd();
this._updateSearchHeight(true);
}
this._setIntroVisible(!valid, animate);
Expand Down

0 comments on commit 1812d0f

Please sign in to comment.