You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
### v4.12.0
2
+
* fix(callbacks): add onSelect and onDeselect callbacks that will indicate user triggered values change as appose to onChange - firing upon any values changes even internal [View](https://github.com/sanusart/react-dropdown-select/commit/a35c74619f8f6bce08071ab44ca7b409587a64c7)
3
+
1
4
### v4.11.3
2
5
* FIX (types): clearAllLabel missing in types (#322) [View](https://github.com/sanusart/react-dropdown-select/pull/322/commits/9aa7c8d683a0fde367e96f1ecf8022065b0656eb)
Copy file name to clipboardExpand all lines: README.md
+23-21Lines changed: 23 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,27 +142,29 @@ const options = [
142
142
143
143
> by using renderer props to override components some of the functionality will have to be handled manually with a help of internal props, states and methods exposed
| onChange | func || On values change callback, returns array of values objects |
148
-
| onDropdownClose | func || Fires upon dropdown close |
149
-
| onDropdownOpen | func || Fires upon dropdown open |
150
-
| onCreateNew | func || Fires upon creation of new item if `create` prop set to `true`|
151
-
| onClearAll | func || Fires upon clearing all values (via custom renderers) |
152
-
| onSelectAll | func || Fires upon selecting all values (via custom renderers) |
153
-
| onDropdownCloseRequest | func | undefined | Fires upon dropdown closing state, stops the closing and provides own method `close()`|
154
-
|[contentRenderer](https://sanusart.github.io/react-dropdown-select/prop/content-renderer)| func || Overrides internal content component (the contents of the select component) |
155
-
|[itemRenderer](https://sanusart.github.io/react-dropdown-select/prop/item-renderer)| func || Overrides internal item in a dropdown |
156
-
|[noDataRenderer](https://sanusart.github.io/react-dropdown-select/prop/no-data-renderer)| func || Overrides internal "no data" (shown where search has no results) |
157
-
|[optionRenderer](https://sanusart.github.io/react-dropdown-select/prop/option-renderer)| func || Overrides internal option (the pillow with an "x") on the select content |
158
-
|[inputRenderer](https://sanusart.github.io/react-dropdown-select/prop/input-renderer)| func || Overrides internal input text |
| onChange | func || On values change **(user and internally triggered)** callback, returns array of values objects |
148
+
| onSelect | func || On values change (user triggered) callback, returns array of values objects |
149
+
| onDeselect | func || On values change (user triggered) callback, returns array of values objects |
150
+
| onDropdownClose | func || Fires upon dropdown close |
151
+
| onDropdownOpen | func || Fires upon dropdown open |
152
+
| onCreateNew | func || Fires upon creation of new item if `create` prop set to `true`|
153
+
| onClearAll | func || Fires upon clearing all values (via custom renderers) |
154
+
| onSelectAll | func || Fires upon selecting all values (via custom renderers) |
155
+
| onDropdownCloseRequest | func | undefined | Fires upon dropdown closing state, stops the closing and provides own method `close()`|
156
+
|[contentRenderer](https://sanusart.github.io/react-dropdown-select/prop/content-renderer)| func || Overrides internal content component (the contents of the select component) |
157
+
|[itemRenderer](https://sanusart.github.io/react-dropdown-select/prop/item-renderer)| func || Overrides internal item in a dropdown |
158
+
|[noDataRenderer](https://sanusart.github.io/react-dropdown-select/prop/no-data-renderer)| func || Overrides internal "no data" (shown where search has no results) |
159
+
|[optionRenderer](https://sanusart.github.io/react-dropdown-select/prop/option-renderer)| func || Overrides internal option (the pillow with an "x") on the select content |
160
+
|[inputRenderer](https://sanusart.github.io/react-dropdown-select/prop/input-renderer)| func || Overrides internal input text |
0 commit comments