Skip to content

Commit

Permalink
Fix issues on keyup
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhyuwa committed Mar 31, 2021
1 parent 655bced commit e3e0daa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ All notable changes to this project will be documented in this file.

- Fix issues dynamic import on Vite ([#12](https://github.com/kenhyuwa/litepie-datepicker/issues/12)).

## [1.0.14]

- Fix issues on keyup ([#15](https://github.com/kenhyuwa/litepie-datepicker/issues/15)).

[Released]: https://github.com/kenhyuwa/litepie-datepicker/
[1.0.0]: https://github.com/kenhyuwa/litepie-datepicker/releases/tag/v1.0.0
[1.0.1]: https://github.com/kenhyuwa/litepie-datepicker/releases/tag/v1.0.1
Expand All @@ -85,3 +89,4 @@ All notable changes to this project will be documented in this file.
[1.0.11]: https://github.com/kenhyuwa/litepie-datepicker/releases/tag/v1.0.11
[1.0.12]: https://github.com/kenhyuwa/litepie-datepicker/releases/tag/v1.0.12
[1.0.13]: https://github.com/kenhyuwa/litepie-datepicker/releases/tag/v1.0.13
[1.0.14]: https://github.com/kenhyuwa/litepie-datepicker/releases/tag/v1.0.14
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litepie-datepicker",
"version": "1.0.13",
"version": "1.0.14",
"description": "A date range picker component for Vue.js and Tailwind CSS, dependent to day.js",
"main": "dist/litepie-datepicker.ssr.js",
"browser": "dist/litepie-datepicker.esm.js",
Expand Down
2 changes: 2 additions & 0 deletions src/litepie-datepicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ export default /*#__PURE__*/ defineComponent({
emit('update:modelValue', [s, e]);
} else if (useObject()) {
const obj = {};
const [start, end] = Object.keys(props.modelValue);
obj[start] = s;
obj[end] = e;
emit('update:modelValue', obj);
Expand All @@ -768,6 +769,7 @@ export default /*#__PURE__*/ defineComponent({
emit('update:modelValue', [pickerValue.value]);
} else if (useObject()) {
const obj = {};
const [start] = Object.keys(props.modelValue);
obj[start] = pickerValue.value;
emit('update:modelValue', obj);
} else {
Expand Down

0 comments on commit e3e0daa

Please sign in to comment.