Simple input is currently partially converted to an uncontrolled component, but it still manages its internal text state.
This requires users to grab a dom ref of the input and manually clear it with a ref:
this.searchRef.input.value = ''
this.searchRef.input.focus()
this.props.resetInstitutions()
The component should be converted to handle either case: controlled or uncontrolled or both, but not be in the current situation where it is partially controlled and partially uncontrolled.
Simple input is currently partially converted to an uncontrolled component, but it still manages its internal text state.
This requires users to grab a dom ref of the input and manually clear it with a ref:
The component should be converted to handle either case: controlled or uncontrolled or both, but not be in the current situation where it is partially controlled and partially uncontrolled.