Skip to content

Commit

Permalink
fix: reinit mask on reset/clear
Browse files Browse the repository at this point in the history
  • Loading branch information
adamberecz committed Mar 19, 2024
1 parent 3961d2f commit c4f9719
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## v1.0.1
## v1.0.3

> `2024-03-05`
> `2024-03-19`
### 🎉 Feature
- Initial release
### 🐞 Bug Fixes
- Reinit mask on reset / clear

## v1.0.0
## v1.0.0 - v1.0.2

> `2024-02-29`
> `2024-03-05`
### 🎉 Feature
- Initial release
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vueform/plugin-mask",
"version": "1.0.2",
"version": "1.0.3",
"description": "Official input mask plugin for Vueform.",
"repository": "vueform/plugin-mask",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export default (options = {}, IMask = null) => ({
input.value.value = ''
model.value = nullValue.value
value.value = nullValue.value
initMask()
}

const reset = () => {
Expand All @@ -244,6 +245,7 @@ export default (options = {}, IMask = null) => ({
model.value = defaultValue.value
value.value = defaultValue.value
resetValidators()
initMask()
}

const checkInputType = () => {
Expand Down

0 comments on commit c4f9719

Please sign in to comment.