vueless 0.0.358 → 0.0.359

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.358",
3
+ "version": "0.0.359",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -282,8 +282,10 @@ function onUpdateModelValue(value) {
282
282
  emit("update:modelValue", localValue.value);
283
283
  }
284
284
 
285
- if (Number(props.minLength) && value.length >= Number(props.minLength)) {
286
- setDebounce(() => emit("update:modelValue", localValue.value), Number(props.debounce))();
285
+ if (value.length >= Number(props.minLength)) {
286
+ Number(props.minLength)
287
+ ? setDebounce(() => emit("update:modelValue", localValue.value), Number(props.debounce))()
288
+ : value && emit("update:modelValue", localValue.value);
287
289
  }
288
290
  }
289
291
 
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.358",
4
+ "version": "0.0.359",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",