Skip to content

Commit

Permalink
TASK: just trim the leading part of a string
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Oct 8, 2024
1 parent 9d08cca commit 41fb986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/neos-ui-editors/src/Library/LinkInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ export default class LinkInput extends PureComponent {
}

handleSearchTermChange = searchTerm => {
// trim leading and trailing whitespace as it can cause issues
// trim leading whitespace as it can cause issues
// with the further processing
if (typeof searchTerm === 'string') {
searchTerm = searchTerm.trim()
searchTerm = searchTerm.trimStart();
}

this.setState({searchTerm});
Expand Down

0 comments on commit 41fb986

Please sign in to comment.