Skip to content

omit the confusing defaultValue type from props #743

Description

@tiny-ant

I'm trying to solve a bug caused by the controlled value props from parent (in some case the cursor jumps to the start of line, in some other cases it rolls back part of the input), since value and defaultValue are both defined in props, so I tried to use defaultValue to get rid of controlling the value state, then... oh shit , this is a trap ! it's worse than a bug !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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