million: [$50] modified state value is not reflected into the input field.

What version of million are you using?

2.6.4

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

yarn

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the Bug

The variable’s state get reset when passing empty string but the input field doesn’t get emptied. Problem is demonstrated more clearly through a video

https://github.com/aidenybai/million/assets/12785891/abd5b0cc-39e6-4271-bb73-d09643629e80

What’s the expected result?

When resetting the status to empty value, then input field should be reset as well.

Link to Minimal Reproducible Example

Check the video (easy to reproduce)

Participation

  • I am willing to submit a pull request for this issue.

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 18 (5 by maintainers)

Most upvoted comments

I had the same issue, I switched to making my input form an uncontrolled component in #655

I wasn’t sure if its my implementation problem or the way million decides when to pass updated props to the child component.

I’ll come back to this issue when I have a better network connectivity