@pnkx-lib/ui 1.9.366 → 1.9.368
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.
|
@@ -52,6 +52,7 @@ const SliderRange = (props) => {
|
|
|
52
52
|
value,
|
|
53
53
|
min,
|
|
54
54
|
max,
|
|
55
|
+
defaultValue,
|
|
55
56
|
...restProps
|
|
56
57
|
}
|
|
57
58
|
);
|
|
@@ -70,7 +71,7 @@ const SliderRange = (props) => {
|
|
|
70
71
|
{
|
|
71
72
|
className: "!w-[50px] !mr-1 !bg-[#0000000A]",
|
|
72
73
|
type: "number",
|
|
73
|
-
value: value?.[0]
|
|
74
|
+
value: (value?.[0] ?? defaultValue?.[0]) || 0,
|
|
74
75
|
onBlur: (e) => {
|
|
75
76
|
let minValue = Number(e.target.value);
|
|
76
77
|
if (minValue > max || minValue < min) {
|
|
@@ -95,7 +96,7 @@ const SliderRange = (props) => {
|
|
|
95
96
|
{
|
|
96
97
|
className: "!w-[50px] !ml-1 !bg-[#0000000A]",
|
|
97
98
|
type: "number",
|
|
98
|
-
value: value?.[1]
|
|
99
|
+
value: (value?.[1] ?? defaultValue?.[1]) || 0,
|
|
99
100
|
onBlur: (e) => {
|
|
100
101
|
let maxValue = Number(e.target.value);
|
|
101
102
|
if (maxValue > max || maxValue < min) {
|