-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
This part of code in demo does not work for me.
<range-datepicker-input date-format="MM/DD/YYYY">
<template>
<paper-input label="Date from" value="[[dateFrom]]" readonly></paper-input>
<paper-input label="Date to" value="[[dateTo]]" readonly></paper-input>
</template>
</range-datepicker-input>
Add a will solve the problem
<dom-bind>
<template>
<range-datepicker date-from="{{dateFrom}}" date-to="{{dateTo}}"></range-datepicker>
<range-datepicker-input date-format="MM/DD/YYYY">
<paper-input label="Date from" value="[[dateFrom]]" readonly></paper-input>
<paper-input label="Date to" value="[[dateTo]]" readonly></paper-input>
</range-datepicker-input>
</template>
</dom-bind>
And I also moved the <range-datepicker> from the top of the demo next to the place where you actually put the <range-datepicker-input> as I guess it does not make any sense to put those data binding stuff so far from each other.
Also the dateFormat property does not seem to work for me. It will always display in Unix timestamp.
You can see the code here: https://codepen.io/SlashBunny/pen/BdwZVq?editors=1000
Metadata
Metadata
Assignees
Labels
No labels