wave-ui 3.4.5 → 3.4.6

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": "wave-ui",
3
- "version": "3.4.5",
3
+ "version": "3.4.6",
4
4
  "description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "homepage": "https://antoniandre.github.io/wave-ui",
@@ -186,6 +186,8 @@ export default {
186
186
  // Keep the `class` attribute bound to the wrapper and not the input.
187
187
  // eslint-disable-next-line no-unused-vars
188
188
  const { class: classes, ...htmlAttrs } = this.$attrs
189
+ // Resets the input[type=file] the native HTML way.
190
+ if (this.type === 'file' && !this.inputFiles.length) htmlAttrs.value = null
189
191
  return htmlAttrs
190
192
  },
191
193
 
@@ -361,7 +363,10 @@ export default {
361
363
  modelValue (value) {
362
364
  this.inputValue = value
363
365
  // When clearing the field value, also reset the isAutofilled var for the CSS class.
364
- if (!value && value !== 0) this.isAutofilled = false
366
+ if (!value && value !== 0) {
367
+ this.isAutofilled = false
368
+ this.inputFiles = []
369
+ }
365
370
  }
366
371
  }
367
372
  }