@steroidsjs/core 3.0.62 → 3.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.62",
3
+ "version": "3.0.64",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -22,7 +22,8 @@ function CheckboxListField(props) {
22
22
  inputProps: props.inputProps,
23
23
  disabled: props.disabled,
24
24
  itemView: props.itemView,
25
- itemViewProps: props.itemViewProps
25
+ itemViewProps: props.itemViewProps,
26
+ onChange: props.onChange
26
27
  }), selectedIds = _a.selectedIds, items = _a.items, inputProps = _a.inputProps, onItemSelect = _a.onItemSelect, renderItem = _a.renderItem;
27
28
  var viewProps = (0, react_1.useMemo)(function () { return ({
28
29
  items: items,
@@ -5,6 +5,11 @@ function useOnDayClick(props) {
5
5
  var useSmartRangeReset = props.useSmartRangeReset, focus = props.focus, fromValue = props.fromValue, toValue = props.toValue, onFromChange = props.onFromChange, onToChange = props.onToChange;
6
6
  var onDayClick = (0, react_1.useCallback)(function (value) {
7
7
  if (useSmartRangeReset) {
8
+ // Если кликнули по одной дате два раза
9
+ if (value === fromValue && !toValue) {
10
+ onToChange(value);
11
+ return;
12
+ }
8
13
  // Если кликнули по дате начала или конца диапазона, то позволяем её изменить следующим кликом
9
14
  // Если клик не на дату конца или начала диапазона, а диапазон есть, то сбрасываем его
10
15
  if (value === fromValue) {