@@ -225,6 +225,10 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
225225 } ) ;
226226 } ;
227227
228+ useEffect ( ( ) => {
229+ setSingleSearchTypeValue ( "" ) ;
230+ } , [ singleSearchType ] ) ;
231+
228232 /* eslint-disable jsx-a11y/control-has-associated-label */
229233 return (
230234 < >
@@ -360,7 +364,7 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
360364 isSearchable
361365 defaultOptions
362366 loadOptions = { debounceOptions }
363- defaultInputValue = { singleSearchTypeValue }
367+ value = { singleSearchTypeValue }
364368 onChange = { ( newValue ) => {
365369 setSingleSearchTypeValue ( newValue ) ;
366370 } }
@@ -378,7 +382,7 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
378382 isSearchable
379383 defaultOptions
380384 loadOptions = { debounceOptions }
381- defaultInputValue = { singleSearchTypeValue }
385+ value = { singleSearchTypeValue }
382386 onChange = { ( newValue ) => {
383387 setSingleSearchTypeValue ( newValue ) ;
384388 } }
@@ -396,7 +400,7 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
396400 isSearchable
397401 defaultOptions
398402 loadOptions = { debounceOptions }
399- defaultInputValue = { singleSearchTypeValue }
403+ value = { singleSearchTypeValue }
400404 onChange = { ( newValue ) => {
401405 setSingleSearchTypeValue ( newValue ) ;
402406 } }
0 commit comments