Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c8e6024

Browse files
committed
fix(SuggestionBox): a bug prevents inputs with space(s)
1 parent 42cd6bf commit c8e6024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/SuggestionBox/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default function SuggestionBox({
120120
const [suggestions, setSuggestions] = React.useState([]);
121121
const [value, setValue] = React.useState("");
122122

123-
const onChange = (event, { newValue }) => setValue(newValue.trim());
123+
const onChange = (event, { newValue }) => setValue(newValue);
124124

125125
const onSuggestionsFetchRequested = async ({ value }) => {
126126
if (purpose === "locations") {

0 commit comments

Comments
 (0)