buildo / react-components

Collection of general React components used in buildo projects.
http://react-components.buildo.io/
MIT License
157 stars 21 forks source link

Dropdown: clearing returns `null` to `onChange` when `multi = true` #1133

Closed gabro closed 7 years ago

gabro commented 7 years ago

Project card

description

When hitting the clear icon with multi = true onChange receives null. When removing the last element "manually" onChange receives empty string.

FrancescoCioria commented 7 years ago

IMO null is the correct behavior -> I would always return null when value is removed for any reason