@greghowe79/the-lib 1.0.6 → 1.0.8
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.
|
@@ -39,6 +39,12 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
|
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
if (type === "radio") {
|
|
43
|
+
if (value) {
|
|
44
|
+
elem.value = value.value;
|
|
45
|
+
}
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
42
48
|
if (value) value.value = elem.value;
|
|
43
49
|
if (onInput$) {
|
|
44
50
|
await onInput$();
|
|
@@ -118,7 +124,9 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
|
|
|
118
124
|
type: "radio",
|
|
119
125
|
name,
|
|
120
126
|
checked: checked?.value,
|
|
121
|
-
required
|
|
127
|
+
required,
|
|
128
|
+
"bind:value": value,
|
|
129
|
+
onInput$: inputHandler
|
|
122
130
|
}) : /* @__PURE__ */ jsxRuntime.jsx("label", {
|
|
123
131
|
class: `input-label ${bgLight ? "bg_light" : ""}`,
|
|
124
132
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
@@ -37,6 +37,12 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
if (type === "radio") {
|
|
41
|
+
if (value) {
|
|
42
|
+
elem.value = value.value;
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
40
46
|
if (value) value.value = elem.value;
|
|
41
47
|
if (onInput$) {
|
|
42
48
|
await onInput$();
|
|
@@ -116,7 +122,9 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
|
|
|
116
122
|
type: "radio",
|
|
117
123
|
name,
|
|
118
124
|
checked: checked?.value,
|
|
119
|
-
required
|
|
125
|
+
required,
|
|
126
|
+
"bind:value": value,
|
|
127
|
+
onInput$: inputHandler
|
|
120
128
|
}) : /* @__PURE__ */ jsx("label", {
|
|
121
129
|
class: `input-label ${bgLight ? "bg_light" : ""}`,
|
|
122
130
|
children: /* @__PURE__ */ jsxs("div", {
|