wave-ui 1.67.0 → 1.67.2
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": "1.67.
|
|
3
|
+
"version": "1.67.2",
|
|
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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"build-bundle": "BUNDLE=true vite build && mv ./dist/style.css ./dist/wave-ui.css",
|
|
48
48
|
"serve": "vite preview --base /wave-ui/",
|
|
49
49
|
"lint": "vite lint",
|
|
50
|
-
"publish": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag
|
|
50
|
+
"publish-doc": "npm run build && npm run build-bundle && git add . && git commit -m 'Publish documentation on Github.' && git push && git push --tag"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@babel/core": "^7.22.10",
|
|
@@ -180,6 +180,8 @@ export default {
|
|
|
180
180
|
// Keep the `class` attribute bound to the wrapper and not the input.
|
|
181
181
|
// eslint-disable-next-line no-unused-vars
|
|
182
182
|
const { class: classes, ...htmlAttrs } = this.$attrs
|
|
183
|
+
// Resets the input[type=file] the native HTML way.
|
|
184
|
+
if (this.type === 'file' && !this.inputFiles.length) htmlAttrs.value = null
|
|
183
185
|
return htmlAttrs
|
|
184
186
|
},
|
|
185
187
|
|
|
@@ -355,7 +357,10 @@ export default {
|
|
|
355
357
|
value (value) {
|
|
356
358
|
this.inputValue = value
|
|
357
359
|
// When clearing the field value, also reset the isAutofilled var for the CSS class.
|
|
358
|
-
if (!value && value !== 0)
|
|
360
|
+
if (!value && value !== 0) {
|
|
361
|
+
this.isAutofilled = false
|
|
362
|
+
this.inputFiles = []
|
|
363
|
+
}
|
|
359
364
|
}
|
|
360
365
|
}
|
|
361
366
|
}
|