vueless 0.0.458 → 0.0.459

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.458",
3
+ "version": "0.0.459",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -234,7 +234,7 @@ const elementId = props.id || useId();
234
234
 
235
235
  const { moneyInputAttrs } = useAttrs(props);
236
236
 
237
- const { formattedValue, rawValue, setValue } = useFormatCurrency(`#${elementId}`, () => ({
237
+ const { formattedValue, rawValue, setValue } = useFormatCurrency(elementId, () => ({
238
238
  minFractionDigits: props.minFractionDigits,
239
239
  maxFractionDigits: props.maxFractionDigits,
240
240
  decimalSeparator: props.decimalSeparator,
@@ -17,7 +17,7 @@ export default function useFormatCurrency(elementId, options) {
17
17
  );
18
18
 
19
19
  onMounted(() => {
20
- inputElement = document.querySelector(elementId);
20
+ inputElement = document.getElementById(elementId);
21
21
  inputElement.addEventListener("input", onInput);
22
22
 
23
23
  onInput(formattedValue.value);
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.458",
4
+ "version": "0.0.459",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",