I have the following time zone select field:
x-select value=location.timezone class="form-control"
each timeZones as |timeZone|
x-option value=timeZone.name
' (GMT)
The problem with the select field is that it doesn't pre-select the value of location.timezone
. This isn't surprising. Each timeZone
is an object, not a string, but timezone
is a string.
How can I make this x-select
match timeZone.name
with location.timezone
?
Aucun commentaire:
Enregistrer un commentaire