gadgetchnnel / lovelace-text-input-row

A custom Lovelace text input row for use in entities cards
38 stars 11 forks source link

Change event may not be triggered, leaving input_text in old state #3

Open Alfiegerner opened 4 years ago

Alfiegerner commented 4 years ago

This PR has 2 changes:

  1. fire a change event when ever the window is clicked or touched on
  2. only update the input_text back via service if value is changed.

I made this change as field was not updating when I pushed a button to call a service, so the old value was used.