Skip to content

Commit

Permalink
feat: close menu only if closeOnClearValue prop is true
Browse files Browse the repository at this point in the history
  • Loading branch information
pochern committed May 26, 2023
1 parent 7ee5c4a commit c0ad228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/VueDatePicker/VueDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@
clearInternalValues();
emit('update:model-value', null);
emit('cleared');
closeMenu();
if (props.closeOnClearValue) {
closeMenu();
}
};
const validateBeforeEmit = () => {
Expand Down

0 comments on commit c0ad228

Please sign in to comment.