elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.

Home Page:https://elementor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

screen shot 2017-07-27 at 5 34 30 pm

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' ), ] );

Should be fixed in next version.

related PR: #3006