Date picker: Cannot edit start time if enable period (from-to)
-
Assume that I am adding a
Controls_Manager::DATE_TIME
with the following:$repeater->add_control( 'period', array( 'type' => Controls_Manager::DATE_TIME, 'label' => __( 'Time Period', 'my_theme' ), 'description' => __( 'Time period', 'my_theme' ), 'picker_options' => array( 'enableTime' => true, 'mode' => 'range', 'dateFormat' => 'Y-m-d H:i' ), 'default' => '', ) );
I found myself not able to edit the “From” time if using the above settings. Here is how to reproduce:
– Click on the time period input box, a popup appear
– Click on any date (e.g. Sept 1) as start date and click another date (e.g. Sept 10) as end date.
– Change the time, you will find that you can only change the end time, there is no way to change the start time.Can you please take a look?
Thank you
- The topic ‘Date picker: Cannot edit start time if enable period (from-to)’ is closed to new replies.