Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum call stack size exceeded #127

Open
AnkitKundariya opened this issue Feb 3, 2020 · 1 comment
Open

Maximum call stack size exceeded #127

AnkitKundariya opened this issue Feb 3, 2020 · 1 comment

Comments

@AnkitKundariya
Copy link


$(".dateinput").datetimepicker({
            format: 'DD/MM/YYYY',
            keepOpen: false,
            ignoreReadonly: true,
            autoclose: true,
        });

        $(".timeinput").datetimepicker({
            format: 'hh:mm A',
            ignoreReadonly: true,
            keepOpen: false,
            autoclose: true,
            timeZone: 'Asia/Kuwait'
        });

tempusdominus-bootstrap-4.min.js:6 Uncaught RangeError: Maximum call stack size exceeded
    at k (tempusdominus-bootstrap-4.min.js:6)
    at HTMLInputElement.<anonymous> (tempusdominus-bootstrap-4.min.js:7)
    at HTMLDocument.dispatch (jquery-3.4.0.min.js:2)
    at HTMLDocument.v.handle (jquery-3.4.0.min.js:2)
    at Object.trigger (jquery-3.4.0.min.js:2)
    at HTMLInputElement.<anonymous> (jquery-3.4.0.min.js:2)
    at Function.each (jquery-3.4.0.min.js:2)
    at k.fn.init.each (jquery-3.4.0.min.js:2)
    at k.fn.init.trigger (jquery-3.4.0.min.js:2)
    at k.s._notifyEvent (tempusdominus-bootstrap-4.min.js:6)
@kgpanteon
Copy link

I have similar issue, Error in console and hang browser if decrease minute or hours:

$('#datetimepicker').datetimepicker({
format: format,
minDate: startDate,
maxDate: endDate,
stepping: 5,
focusOnShow: true,
locale: moment.locale(locale),
viewMode: 'time',
disabledDates: disableDeptDates,
disabledTimeIntervals: disabledDeptTimeIntervals,
ignoreReadonly: true,
useCurrent: false,
keepOpen: true,
debug: false
});

$("#datetimepicker").on("dp.show", function (e) {
  var minDate = $('#datetimepicker').data('DateTimePicker').minDate();    
  $('#datetimepicker').data('DateTimePicker').defaultDate(moment(minDate._i));
  $('#datetimepicker').data('DateTimePicker').viewDate(moment(minDate._i));
});

$("#datetimepicker").on("dp.change", function (e) {
  var newPickDate = getSetNewDate(e.date);

    var displayDate = moment(newPickDate).format(format);

  $('#datetimepicker').data('DateTimePicker').defaultDate(moment(newPickDate));
  $('#datetimepicker').data('DateTimePicker').viewDate(moment(newPickDate));
  $('#datetimepicker').val(displayDate);
});

Uncaught RangeError: Maximum call stack size exceeded
at new Duration (moment-with-locales.js:2748)
at createDuration (moment-with-locales.js6:3077)
at Moment.subtract (moment-with-locales.js6:3142)
at stepInvalidCounter (bootstrap-datetimepicker.js:614)
at stepInvalidCounter (bootstrap-datetimepicker.js6:628)
at stepInvalidCounter (bootstrap-datetimepicker.js6:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)

Uncaught RangeError: Maximum call stack size exceeded
at createDuration (moment-with-locales.js:3025)
at Moment.subtract (moment-with-locales.js:3142)
at stepInvalidCounter (bootstrap-datetimepicker.js:614)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)
at stepInvalidCounter (bootstrap-datetimepicker.js:628)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants