bulma-calendar: Unable to pre-select time with data-start-time
I’m not able to initilize / pre-select the time with data-attributes.
<input type="time" data-start-time="10:00" value="10:00" name="start_time" id="start_time" >
The form looks fine and I can select a time but initializing it beforehand does not work with a time of my choosing. Is it a bug or am I doing it wrong?
I’m on the latest bulma-calender release which i believe is 6.0.4
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 25 (3 by maintainers)
Hi guys,
I’ve been fighting with this bug as well. Maybe you’ll find useful my hacky-from-non-js-dev function.
@DebugTheCode I’ve made a lot of changes in the last days. It can also be in the changes from 6.1.0 to 6.1.1. As you can see in the docs (https://doc.mh-s.de/bulma-calendar/demonstration/datetime/#range-selection) the preset start / end date and time is set:
hello, does anyone know how to display the current time in the input, like this->
Thank you in advance for your reply.
Found a way around the isRange: true bit HTML:
<input id="event-event_start_datetime" type="datetime" value="01/20/2020 01:15 - 01/21/2020 23:59">
JAVASCRIPT:
I’m encountering the same issue while attempting to set
startTime
andendTime
initial values for a timepicker on version 6.0.7. Commenting in the hope this issue can be revisited.