Skip to content

double div datepicker when fired domready #153

Description

@pelikanek

Hello, thanks for great datepicker! I found some error when I must use this code after ajax request:

window.fireEvent('domready');

It created another div with class="datepicker", so many div with this class do some wacky result. I fix it with this code (I clear every your hidden datepickers before running Picker class):

$$('.datepicker').each(function(el) {  
  if (el.getProperty('aria-hidden') != null) el.destroy();
});

and then I use normal code...

new Picker.Date.Range($$('.datepicker_datum_range'), {
    timePicker: false,
    columns: 3,
    positionOffset: {x: 5, y: 0}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions