mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 05:46:35 +00:00
Additional comments for pikaday field binding
This commit is contained in:
parent
1a8832099c
commit
b3efdd9efa
@ -132,6 +132,8 @@ Polymer({
|
|||||||
|
|
||||||
attached: function () {
|
attached: function () {
|
||||||
this.datePicker = new window.Pikaday({
|
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'),
|
field: document.createElement('input'),
|
||||||
trigger: this.$.datePicker.inputElement,
|
trigger: this.$.datePicker.inputElement,
|
||||||
onSelect: this.hass.entityHistoryActions.changeCurrentDate,
|
onSelect: this.hass.entityHistoryActions.changeCurrentDate,
|
||||||
|
@ -139,6 +139,8 @@ Polymer({
|
|||||||
|
|
||||||
attached: function () {
|
attached: function () {
|
||||||
this.datePicker = new window.Pikaday({
|
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'),
|
field: document.createElement('input'),
|
||||||
trigger: this.$.datePicker.inputElement,
|
trigger: this.$.datePicker.inputElement,
|
||||||
onSelect: this.hass.logbookActions.changeCurrentDate,
|
onSelect: this.hass.logbookActions.changeCurrentDate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user