@schedule-x/date-picker
Advanced tools
Comparing version 1.39.0 to 1.40.0
@@ -752,6 +752,12 @@ 'use strict'; | ||
}); | ||
let wasInitialized = false; | ||
const handleOnChange = (selectedDate) => { | ||
if (!wasInitialized) | ||
return (wasInitialized = true); | ||
config.listeners.onChange(selectedDate); | ||
}; | ||
signals.effect(() => { | ||
var _a; | ||
if ((_a = config.listeners) === null || _a === void 0 ? void 0 : _a.onChange) | ||
config.listeners.onChange(selectedDate.value); | ||
handleOnChange(selectedDate.value); | ||
}); | ||
@@ -758,0 +764,0 @@ return { |
@@ -752,6 +752,12 @@ 'use strict'; | ||
}); | ||
let wasInitialized = false; | ||
const handleOnChange = (selectedDate) => { | ||
if (!wasInitialized) | ||
return (wasInitialized = true); | ||
config.listeners.onChange(selectedDate); | ||
}; | ||
signals.effect(() => { | ||
var _a; | ||
if ((_a = config.listeners) === null || _a === void 0 ? void 0 : _a.onChange) | ||
config.listeners.onChange(selectedDate.value); | ||
handleOnChange(selectedDate.value); | ||
}); | ||
@@ -758,0 +764,0 @@ return { |
@@ -750,6 +750,12 @@ import { options, createContext, Fragment, Component, createElement, toChildArray, render } from 'preact'; | ||
}); | ||
let wasInitialized = false; | ||
const handleOnChange = (selectedDate) => { | ||
if (!wasInitialized) | ||
return (wasInitialized = true); | ||
config.listeners.onChange(selectedDate); | ||
}; | ||
effect(() => { | ||
var _a; | ||
if ((_a = config.listeners) === null || _a === void 0 ? void 0 : _a.onChange) | ||
config.listeners.onChange(selectedDate.value); | ||
handleOnChange(selectedDate.value); | ||
}); | ||
@@ -756,0 +762,0 @@ return { |
{ | ||
"name": "@schedule-x/date-picker", | ||
"version": "1.39.0", | ||
"version": "1.40.0", | ||
"description": "Schedule-X date picker component", | ||
@@ -34,3 +34,3 @@ "author": { | ||
"homepage": "https://schedule-x.dev", | ||
"gitHead": "1f80aa24a2502776ff46d68e6184e3311d5a8930" | ||
"gitHead": "b5d4dbf29bedc4f55929c9d6daf41c4f2c92c26c" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
262347
6479