Open themightychris opened 10 years ago
textfields were already being disabled/enabled. I added a check in onAddressFieldTap() so the selectAddressPanel is only shown if the textfield is not disabled. And I added a handler for the clear icon so the field is re-enabled when cleared.
https://github.com/BillClinton/SeptaMobi/commit/4161b96c2dba67395137b13be02f9a086fdc6aaf
updated code after suggestions by Chris here: https://github.com/BillClinton/SeptaMobi/commit/6d1b8f3c22fabc80f1db06066a97764f177acb51
When current location is activated on the trip planner form, "current location" is set as the value on the input field. This enables it to be edited, searched for, and cleared. Instead, the field should be disabled and "current location" should be set as placeholder text