mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 05:16:34 +00:00
Additional comments for pikaday field binding
This commit is contained in:
parent
1a8832099c
commit
b3efdd9efa
@ -132,6 +132,8 @@ Polymer({
|
||||
|
||||
attached: function () {
|
||||
this.datePicker = new window.Pikaday({
|
||||
// Bind field to dummy input to prevent pikaday from overwriting
|
||||
// field value with its internal formatting.
|
||||
field: document.createElement('input'),
|
||||
trigger: this.$.datePicker.inputElement,
|
||||
onSelect: this.hass.entityHistoryActions.changeCurrentDate,
|
||||
|
@ -139,6 +139,8 @@ Polymer({
|
||||
|
||||
attached: function () {
|
||||
this.datePicker = new window.Pikaday({
|
||||
// Bind field to dummy input to prevent pikaday from overwriting
|
||||
// field value with its internal formatting.
|
||||
field: document.createElement('input'),
|
||||
trigger: this.$.datePicker.inputElement,
|
||||
onSelect: this.hass.logbookActions.changeCurrentDate,
|
||||
|
Loading…
x
Reference in New Issue
Block a user