Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChange is not triggered when increment/decrement buttons are used in InputNumber #61

Open
hnagrath09 opened this issue Nov 2, 2021 · 0 comments

Comments

@hnagrath09
Copy link
Collaborator

hnagrath09 commented Nov 2, 2021

onChange function is not called if values are changed using increment/decrement arrow buttons in InputNumber component.

Steps to Reproduce

import { InputNumber } from '@tail-kit/tail-kit'

export default function BugReproduction(){
  const [value, setValue] = useState(3);

  function handleChange(event) {
     console.log('New Value', event.target.value);
     setValue(event.target.value);
  }
   
   return <InputNumber value={value} onChange={handleChange} />
}

handleChange will not be called if value of input is changed using Arrow buttons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant