When using the search components as a controlled component (with defaultSelected and onValueChange) the suggestions do not display unless I blur and refocus the input.
This is due to how defaultSelected update happens in the component. Whenever the value of the component is changed via defaultSelected, isOpen is set to false. This works for uncontrolled input but not in a controlled environment.
Issue Type:
Bug
Platform:
Web
Description:
When using the search components as a controlled component (with
defaultSelected
andonValueChange
) the suggestions do not display unless I blur and refocus the input.This is due to how
defaultSelected
update happens in the component. Whenever the value of the component is changed viadefaultSelected
,isOpen
is set tofalse
. This works for uncontrolled input but not in a controlled environment.Reactivesearch version: x.y.z
2.6.5