Skip to content

Commit a2fa045

Browse files
author
Nathan Reyes
committed
Fix scoped slot in 'v-date-picker' render function. Closes #83.
1 parent abdf5cc commit a2fa045

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/components/DatePicker.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,10 @@ export default {
5858
'update:forceHidden': val => this.popoverForceHidden = val,
5959
},
6060
}, [
61-
h('slot', {
62-
props: {
63-
inputValue: this.inputValue,
64-
updateValue: this.updateValue,
65-
},
66-
}, [
61+
this.$scopedSlots.default({
62+
inputValue: this.inputValue,
63+
updateValue: this.updateValue,
64+
}) || [
6765
h('input', {
6866
ref: 'input',
6967
class: this.inputProps_.class,
@@ -80,7 +78,7 @@ export default {
8078
change: () => this.updateValue(),
8179
},
8280
}),
83-
]),
81+
],
8482
getPickerComponent('popover-content'),
8583
]);
8684
},

0 commit comments

Comments
 (0)