I have 2 forms. One is Create and Edit. On the create form the input is blank and this plugin input works perfect but on the edit form when the date comes from the server i'm getting a bunch of errors.
I tried formatting the incoming datetime just the way this plugin is formatting but i'm still getting errors.
if I manually delete the value from the input then the plugin works.
Here is my input and the date loaded from the server.
<input class="form-control datetimepicker-input text-box single-line" data-target="#Entry_EntryDate" data-toggle="datetimepicker" data-val="true" data-val-date="The field Event Date must be a date." data-val-required="The Event Date field is required." id="Entry_EntryDate" name="Entry.EntryDate" type="datetime" value="10/25/2017 10:17 AM" />
$(function () { $('#Entry_EntryDate').datetimepicker(); });
I'm using Bootstrap 4 beta 1.
The errors i'm getting at load:
Invalid regular expression: /(^|.)datetimepicker(.|$)/: Stack overflow
if I click the input:
Maximum call stack size exceeded
at String.replace ()
Cannot read property '_options' of undefined
so look likes the plugin is having an issues parsing the value from input when it comes from the server ?
am I doing something wrong here?
Here is the fiddle https://jsfiddle.net/czcz/df4bpzu1/
using: Version 5.0.0-Alpha7