@greghowe79/the-lib 0.8.2 → 0.8.3

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.
@@ -48,12 +48,6 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
48
48
  if (!error) internalError.value = result;
49
49
  }
50
50
  });
51
- const beforeInputHandler = qwik.$((event) => {
52
- const data = event.data;
53
- if (data && /[^0-9]/.test(data)) {
54
- event.preventDefault();
55
- }
56
- });
57
51
  return /* @__PURE__ */ jsxRuntime.jsxs("div", {
58
52
  class: "input-container",
59
53
  children: [
@@ -113,8 +107,7 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
113
107
  placeholder,
114
108
  "bind:value": value,
115
109
  onInput$: inputHandler,
116
- onBlur$: inputHandler,
117
- onBeforeInput$: beforeInputHandler
110
+ onBlur$: inputHandler
118
111
  })
119
112
  ]
120
113
  })
@@ -46,12 +46,6 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
46
46
  if (!error) internalError.value = result;
47
47
  }
48
48
  });
49
- const beforeInputHandler = $((event) => {
50
- const data = event.data;
51
- if (data && /[^0-9]/.test(data)) {
52
- event.preventDefault();
53
- }
54
- });
55
49
  return /* @__PURE__ */ jsxs("div", {
56
50
  class: "input-container",
57
51
  children: [
@@ -111,8 +105,7 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
111
105
  placeholder,
112
106
  "bind:value": value,
113
107
  onInput$: inputHandler,
114
- onBlur$: inputHandler,
115
- onBeforeInput$: beforeInputHandler
108
+ onBlur$: inputHandler
116
109
  })
117
110
  ]
118
111
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",