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

Firefox not rendering calender using options provided. #70

Open
mtbrandall opened this issue Jul 22, 2021 · 4 comments
Open

Firefox not rendering calender using options provided. #70

mtbrandall opened this issue Jul 22, 2021 · 4 comments

Comments

@mtbrandall
Copy link

I have an issue where when using Firefox the calender will not show any of my configured options. It loads the data from the datasource ok. But the min/max date and backgrounds are not show,

Chrome

chrome

Firefox

firefox

@mtbrandall
Copy link
Author

mtbrandall commented Jul 22, 2021

Forgot to add my JS code

const calendar = new Calendar('#calendar', {
  dataSource: function(year) {
    // Load data from GitHub API
    return fetch('https://cobaltholidays.co.uk/new_site/bookings/ajaxlist/' + year + '/'+hh+'/')
      .then(result => result.json())
      .then(result => {
        if (result.items) {
          return result.items.map(r => ({
            startDate: new Date(r.arrival_date),
            endDate: new Date(r.departure_date),
			class: 'booked',
            name: 'Test ',
            details: ' comments',
			color: r.color
          }));
        }
        return [];
      });
  },//Datasource end
  displayDisabledDataSource: true,
  style: 'background',
  maxDate: new Date('12-31-2022'),
  minDate: new Date('01-01-2021'),
  disabledWeekDays: [0,1,2,3,4,5,6],

});

@Paul-DS
Copy link

Paul-DS commented Aug 24, 2021

Should be fixed in v2.0.0

@andersonlyle
Copy link

I have the same issue on Safari for Mac OS and iOS

@dewebdesigns
Copy link

I am having this same issue with Firefox.

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

4 participants