Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Input.onChange not called when input is cleared #930

Closed
miroslavstastny opened this issue Feb 19, 2019 · 1 comment
Closed

Input.onChange not called when input is cleared #930

miroslavstastny opened this issue Feb 19, 2019 · 1 comment
Labels
vsts Paired with ticket in vsts

Comments

@miroslavstastny
Copy link
Member

Bug Report

Steps

<Input
  clearable
  onChange={(event, data) => {
    console.log('changed', data.value)
  }}
/>

Enter some text, hit clear icon

Expected Result

onChange callback called with every change as well as after clear

Actual Result

onChange NOT called after clear 💣

Version

0.21.1

@pkumarie2011 pkumarie2011 added the vsts Paired with ticket in vsts label Feb 19, 2019
@miroslavstastny
Copy link
Member Author

The same problem is in Dropdown:

<Dropdown
  clearable
  items={inputItems}
  onSelectedChange={(event, data) => {
    console.log('changed', data.value) // not called when cleared 💣
  }}
/>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
vsts Paired with ticket in vsts
Projects
None yet
Development

No branches or pull requests

2 participants