Skip to content

Commit

Permalink
DatePicker Container ID issue (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMazel authored Apr 19, 2019
1 parent 622f43e commit 4e69128
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
id="DatePicker"
:id="`${id}-DatePicker`"
:class="{'flex-1 inline': inline, 'p-0 range flex-1': range, 'is-dark': dark, 'has-shortcuts': range && !noShortcuts}"
class="datepicker-container flex flex-fixed"
>
Expand Down Expand Up @@ -165,6 +165,7 @@
},
mixins: [KeyboardAccessibility],
props: {
id: { type: String, default: String },
value: { type: [String, Object], default: String },
color: { type: String, default: String },
minDate: { type: String, default: String },
Expand Down
2 changes: 2 additions & 0 deletions src/VueCtkDateTimePicker/_subs/PickersContainer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<!-- NEED 'YYYY-MM-DD' format -->
<DatePicker
v-if="!onlyTime"
:id="id"
v-model="date"
:dark="dark"
:month="month"
Expand Down Expand Up @@ -108,6 +109,7 @@
props: {
value: { type: [String, Object], default: String },
visible: { type: Boolean, required: true, default: false },
id: { type: String, default: String },
position: { type: String, default: 'bottom' },
inline: { type: Boolean, default: false },
dark: { type: Boolean, default: false },
Expand Down
1 change: 1 addition & 0 deletions src/VueCtkDateTimePicker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
/>
<PickersContainer
v-if="!disabled && isMounted"
:id="id"
ref="agenda"
v-model="dateTime"
:visible="hasPickerOpen"
Expand Down

0 comments on commit 4e69128

Please sign in to comment.