We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b0a724 commit 34fcad4Copy full SHA for 34fcad4
packages/web/src/components/search/SearchBox.js
@@ -1427,6 +1427,8 @@ const SearchBox = (props) => {
1427
{...getInputProps({
1428
className: getClassName(props.innerClass, 'input'),
1429
placeholder: props.placeholder,
1430
+ // When props.value is defined,
1431
+ // it means SearchBox is used as a controlled component
1432
value: Object.hasOwn(props, 'value') ? props.value : currentValue || '',
1433
onChange: onInputChange,
1434
onBlur: withTriggerQuery(props.onBlur),
0 commit comments