grep-components 2.22.0-GREPF-2893.4 → 2.22.1

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/dist/index.js CHANGED
@@ -3174,7 +3174,7 @@ const GrepDateRange = ({ onChange, spacing = 3, style, fullWidth, from: fromProp
3174
3174
  const [from, setFrom] = useDate(fromProperties.value);
3175
3175
  const [to, setTo] = useDate(toProperties.value);
3176
3176
  const { minDate, maxDate, ...commonProperties } = properties;
3177
- useCallback(() => onChange(new DateRangeValue(from ? String(from) : from, to ? String(to) : to)), [from, to, onChange]);
3177
+ useEffect(() => onChange(new DateRangeValue(from ? String(from) : from, to ? String(to) : to)), [from, to, onChange]);
3178
3178
  return (React__default.createElement(Grid, { container: true, spacing: spacing, style: style },
3179
3179
  React__default.createElement(Grid, { size: { xs: 12, sm: fullWidth ? 12 : 6 } },
3180
3180
  React__default.createElement(GrepDatePicker, { id: String(fromProperties.label), fullWidth: true, minDate: minDate, ...commonProperties, ...fromProperties, value: from, maxDate: to?.subtract(1, 'day') || undefined, onChange: setFrom })),