FIX: safari desktop doesnt support input[time] (#7719)
This commit attempts to improve the experience by: - showing time input as disabled on any platform if date hasn't been set - showing a placeholder --:-- to emphasize the expected format
This commit is contained in:
parent
8bd815dab2
commit
a652d620f6
|
@ -36,6 +36,8 @@ export default Ember.Component.extend({
|
|||
}
|
||||
},
|
||||
|
||||
timeInputDisabled: Ember.computed.empty("date"),
|
||||
|
||||
@observes("date", "time")
|
||||
_updateInput() {
|
||||
if (!this.date) {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<div class="control-group">
|
||||
{{d-icon "far-clock"}}
|
||||
{{input type="time" value=time}}
|
||||
{{input placeholder="--:--" type="time" value=time disabled=timeInputDisabled}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -49,6 +49,10 @@
|
|||
font-size: $font-up-1;
|
||||
}
|
||||
}
|
||||
|
||||
input[disabled] {
|
||||
background: $primary-low;
|
||||
}
|
||||
}
|
||||
.pika-single {
|
||||
position: absolute !important; /* inline JS styles */
|
||||
|
|
Loading…
Reference in New Issue