@pnkx-lib/ui 1.9.367 → 1.9.369
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/es/fields/DatePicker.js
CHANGED
|
@@ -12841,7 +12841,7 @@ const DatePicker = (props) => {
|
|
|
12841
12841
|
wrapperClassName,
|
|
12842
12842
|
...restProps
|
|
12843
12843
|
} = props;
|
|
12844
|
-
const { name, value } = field || {};
|
|
12844
|
+
const { name, value, onBlur } = field || {};
|
|
12845
12845
|
const { touchedFields, errors, isSubmitted } = formState || {};
|
|
12846
12846
|
const isTouched = get(touchedFields, name);
|
|
12847
12847
|
const errorMessage = get(errors, name)?.message;
|
|
@@ -12871,6 +12871,7 @@ const DatePicker = (props) => {
|
|
|
12871
12871
|
}
|
|
12872
12872
|
};
|
|
12873
12873
|
const handleBlur = (e) => {
|
|
12874
|
+
onBlur?.();
|
|
12874
12875
|
if (!isTypingRef.current) return;
|
|
12875
12876
|
isTypingRef.current = false;
|
|
12876
12877
|
const value2 = e.target.value;
|
|
@@ -71,7 +71,7 @@ const SliderRange = (props) => {
|
|
|
71
71
|
{
|
|
72
72
|
className: "!w-[50px] !mr-1 !bg-[#0000000A]",
|
|
73
73
|
type: "number",
|
|
74
|
-
value: value?.[0]
|
|
74
|
+
value: (value?.[0] ?? defaultValue?.[0]) || 0,
|
|
75
75
|
onBlur: (e) => {
|
|
76
76
|
let minValue = Number(e.target.value);
|
|
77
77
|
if (minValue > max || minValue < min) {
|
|
@@ -96,7 +96,7 @@ const SliderRange = (props) => {
|
|
|
96
96
|
{
|
|
97
97
|
className: "!w-[50px] !ml-1 !bg-[#0000000A]",
|
|
98
98
|
type: "number",
|
|
99
|
-
value: value?.[1]
|
|
99
|
+
value: (value?.[1] ?? defaultValue?.[1]) || 0,
|
|
100
100
|
onBlur: (e) => {
|
|
101
101
|
let maxValue = Number(e.target.value);
|
|
102
102
|
if (maxValue > max || maxValue < min) {
|