Skip to content

Commit

Permalink
Merge f265bd6 into de0fc75
Browse files Browse the repository at this point in the history
  • Loading branch information
osikes committed Sep 25, 2019
2 parents de0fc75 + f265bd6 commit 095e083
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Inline always open version
| open-date | Date\|String | | If set, open on that date |
| minimum-view | String | 'day' | If set, lower-level views won't show |
| maximum-view | String | 'year' | If set, higher-level views won't show |

| date-input-visible | Boolean | true | Sets visibility of DateInput |

## Events

Expand Down
2 changes: 1 addition & 1 deletion src/components/DateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default {
}
},
mounted () {
this.input = this.$el.querySelector('input')
if (this.$el && this.$el.querySelector) this.input = this.$el.querySelector('input')
}
}
// eslint-disable-next-line
Expand Down
5 changes: 5 additions & 0 deletions src/components/Datepicker.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="vdp-datepicker" :class="[wrapperClass, isRtl ? 'rtl' : '']">
<date-input
v-if="dateInputVisible"
:selectedDate="selectedDate"
:resetTypedDate="resetTypedDate"
:format="format"
Expand Down Expand Up @@ -153,6 +154,10 @@ export default {
maximumView: {
type: String,
default: 'year'
},
dateInputVisible: {
type: Boolean,
default: true
}
},
data () {
Expand Down

0 comments on commit 095e083

Please sign in to comment.