longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Internet Explorer 11 issues #448

Closed dday9 closed 2 years ago

dday9 commented 5 years ago

I have the following markup and jQuery:

<div class="form-group">
  <label for="birthday"><span class="text-danger">*</span> Date of Birth</label>
  <input class="form-control" id="birthday" name="birthday" required="required" />
  <small class="form-text text-muted">This field is required.</small>
</div>

$('#birthday').dateRangePicker({
  autoClose: true,
  customTopBar: 'Pick a Birthday',
  format: 'MM/DD/YYYY',
  monthSelect: true,
  selectBackward: true,
  showShortcuts: false,
  singleDate : true,
  singleMonth: true,
  yearSelect: true,
  beforeShowDay: function(t) {
    var valid = !moment().isBefore(t);
    var _class = '';
    var _tooltip = valid ? '' : 'birthdays happen before today';
    return [valid,_class,_tooltip];
  }
});

While this works in Edge, Chrome, and Flex, it is not working in IE 11. Even if I remove any of the options and try just a blank initialization, that doesn't work on IE 11 either. I am using jQuery v3.3.1 and jquery-date-range-picker v0.18.0.

dday9 commented 5 years ago

It's been roughly 4 months since I've asked this question. Has anyone looked into this?

holtkamp commented 5 years ago

Can you provide your example as "working" example in http://jsfiddle.net ?

And some screenshots are also always useful to determine what you "see"...