Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cleave to 1.0.2 #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-cleave",
"version": "1.2.2",
"version": "1.2.3",
"description": "Cleave component is based on cleave.js for Vue",
"repository": "vue-bulma/cleave",
"license": "MIT",
Expand All @@ -24,6 +24,6 @@
"vue": ">=2"
},
"dependencies": {
"cleave.js": "^0.7.15"
"cleave.js": "^1.0.2"
}
}
2 changes: 1 addition & 1 deletion src/Cleave.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default {
mounted () {
this.$el.value = this.value
this.cleave = new Cleave(this.$el, this.options)
Object.keys(this.events).map((key) => {
Object.keys(this.events).forEach((key) => {
this.$refs.input.addEventListener(key, this.events[key])
})
if (this.options.maxLength) {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# yarn lockfile v1


cleave.js@^0.7.15:
version "0.7.15"
resolved "https://registry.yarnpkg.com/cleave.js/-/cleave.js-0.7.15.tgz#f8e33a2b4d48c48c410e4978f983c85a8be32a5a"
cleave.js@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/cleave.js/-/cleave.js-1.0.2.tgz#9d1fa58cd6290c5410dde8d8664aa54f65e879af"