@greghowe79/the-lib 0.9.7 → 0.9.9

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.
@@ -19,23 +19,16 @@ const Select = qwik.component$(({ id, label, options, selected, prefix }) => {
19
19
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
20
20
  class: `select-wrapper ${selected.value ? "has-value" : ""}`,
21
21
  children: [
22
- /* @__PURE__ */ jsxRuntime.jsxs("select", {
22
+ /* @__PURE__ */ jsxRuntime.jsx("select", {
23
23
  id,
24
24
  name: id,
25
25
  class: "select-element",
26
26
  onChange$: handleChange$,
27
- children: [
28
- /* @__PURE__ */ jsxRuntime.jsx("option", {
29
- value: "",
30
- disabled: true,
31
- selected: true,
32
- hidden: true
33
- }),
34
- options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", {
35
- value: option.value,
36
- children: option.label
37
- }, option.value))
38
- ]
27
+ value: selected.value,
28
+ children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", {
29
+ value: option.value,
30
+ children: option.label
31
+ }, option.value))
39
32
  }),
40
33
  /* @__PURE__ */ jsxRuntime.jsx("label", {
41
34
  for: id,
@@ -17,23 +17,16 @@ const Select = component$(({ id, label, options, selected, prefix }) => {
17
17
  children: /* @__PURE__ */ jsxs("div", {
18
18
  class: `select-wrapper ${selected.value ? "has-value" : ""}`,
19
19
  children: [
20
- /* @__PURE__ */ jsxs("select", {
20
+ /* @__PURE__ */ jsx("select", {
21
21
  id,
22
22
  name: id,
23
23
  class: "select-element",
24
24
  onChange$: handleChange$,
25
- children: [
26
- /* @__PURE__ */ jsx("option", {
27
- value: "",
28
- disabled: true,
29
- selected: true,
30
- hidden: true
31
- }),
32
- options.map((option) => /* @__PURE__ */ jsx("option", {
33
- value: option.value,
34
- children: option.label
35
- }, option.value))
36
- ]
25
+ value: selected.value,
26
+ children: options.map((option) => /* @__PURE__ */ jsx("option", {
27
+ value: option.value,
28
+ children: option.label
29
+ }, option.value))
37
30
  }),
38
31
  /* @__PURE__ */ jsx("label", {
39
32
  for: id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.9.7",
3
+ "version": "0.9.9",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",