Skip to content

Commit

Permalink
Merge pull request #990 from nathanreyes/bug/events-memory-cleanup
Browse files Browse the repository at this point in the history
Fix event removal
  • Loading branch information
nathanreyes authored Oct 6, 2021
2 parents ef19744 + ec83a58 commit 43b3834
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/changelog/v2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,4 +502,9 @@ Fixes single use of `highlight.contentStyle` or `highlight.contentClass`
* Dependabot updates

### Improvements
* Remove custom click detection handlers for Mobile Safari
* Remove custom click detection handlers for Mobile Safari

## v2.3.4

### Bug Fixes
* Fix event removal in date picker
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v-calendar",
"version": "2.3.3",
"version": "2.3.4",
"private": false,
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.",
"author": "Nathan Reyes <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/components/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export default {
},
destroyed() {
off(document, 'keydown', this.onDocumentKeyDown);
on(document, 'click', this.onDocumentClick);
off(document, 'click', this.onDocumentClick);
},
methods: {
getDateParts(date) {
Expand Down

0 comments on commit 43b3834

Please sign in to comment.