bugfix remove onBeforeUpdate and add to select Day

main v0.2.1
HerrHase 1 month ago
parent 92af34001e
commit eab5cd280e

@ -1,6 +1,6 @@
{ {
"name": "@tiny-components/datepicker", "name": "@tiny-components/datepicker",
"version": "0.2.0", "version": "0.2.1",
"description": "Datepicker for Desktop and Mobile", "description": "Datepicker for Desktop and Mobile",
"repository": { "repository": {
"type": "git", "type": "git",

@ -69,16 +69,6 @@ export default {
this.createWeeksAndDays() this.createWeeksAndDays()
}, },
/**
*
*
*/
onBeforeUpdate() {
store.trigger(this.state.namespace + 'change', {
date: this.state.date
})
},
/** /**
* create weeks and days * create weeks and days
* *
@ -138,6 +128,11 @@ export default {
} }
this.state.date = day this.state.date = day
store.trigger(this.state.namespace + 'change', {
date: this.state.date.clone()
})
this.update() this.update()
}, },

Loading…
Cancel
Save