Skip to content

Commit

Permalink
Merge 4aab824 into b8cada3
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed May 18, 2023
2 parents b8cada3 + 4aab824 commit 541ce2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pro/search/src/segments/createInputSegment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function createInputSegment(prefixCls: string, searchField: InputSearchFi
name: 'input',
inputClassName: [inputClassName, `${prefixCls}-input-segment-input`],
placeholder: searchField.placeholder,
parse: input => (input ? input : undefined),
parse: input => (input ? (trim ? input.trim() : input) : undefined),
format: value => (trim ? value?.trim() : value) ?? '',
}
}

0 comments on commit 541ce2a

Please sign in to comment.