Skip to content

Complete Converting Simple Input to Uncontrolled Component #677

@paniclater

Description

@paniclater

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions