Skip to content

[BUG] - V3 NumberField resets if a parent component has a prop change #6414

@jbree

Description

@jbree

HeroUI Version

3.0.2

Describe the bug

NumberField resets its displayed value after parent re-render due to changed prop

Your Example Website or App

https://stackblitz.com/edit/vitejs-vite-rqadeopw?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

Type a new value into the input. When the timer changes a prop on the wrapper, the NumberField resets to default value.

Expected behavior

I expect that the input should retain its value across re-renders.

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

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