Datepicker control NAN bug - Safari browser
badcat opened this issue · comments
The Countdown element resets itself to Zeros via the not a number NaN-aN-aN aN:aN in Safari 10.1.2 every time it is reselected for editing style. Each time I need to reset the date which the Datepicker dropdown looks like this by default.
This is using Elementor Version 1.5.5 (and even with 1.6.0 rc3) and Pro Version 1.5.8
Seems OK in Chrome and FF. thanks.
I am getting this problem on every browser. hat Would be the solution?
Any solution? I'm getting the same issue. Thanks!
Found it! Digging on Elementor Pro just found out that you'll be needing to change the default date() format and it will work perfectly 👍
$element->add_control( 'widget_options', [ 'label' => __( 'Sample DatePicker', 'widget-options' ), 'type' => Elementor\Controls_Manager::DATE_TIME, 'default' => date( 'Y-m-d H:i' ), 'description' => __( 'Checkout Widget Options for WordPress', 'widget-options' ), ] );