question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with 'inverse-background'

See original GitHub issue

Bug Reports

I have problem with Inverse Backgrounds in FullCalendar v4.1.0.

let calendarEl = document.getElementById(this.element_id);
this.calendar = new FullCalendar.Calendar(calendarEl, {
    plugins: [ 'timeGrid' ],
    height: "auto",
    nowIndicator : true,
    defaultView: 'timeGridWeek',
    defaultDate: "2019-04-17",
    events: [
       {
            id: 2,
            start: '2019-04-17 10:00:00',
            end: '2019-04-17 11:00:00',
            color: 'blue',
            rendering: 'inverse-background'
        } , {
            id: 2,
            start: '2019-04-17 14:00:00',
            end: '2019-04-17 15:00:00',
            color: 'blue',
            rendering: 'inverse-background'
        } , {
            id: 2,
            start: '2019-04-17 14:00:00',
            end: '2019-04-17 15:00:00',
            color: 'blue',
            rendering: 'inverse-background'
        } , {
            id: 2,
            start: '2019-04-17 14:00:00',
            end: '2019-04-17 15:00:00',
            color: 'blue',
            rendering: 'inverse-background'
        } , {
            id: 2,
            start: '2019-04-17 14:00:00',
            end: '2019-04-17 15:00:00',
            color: 'blue',
            rendering: 'inverse-background'
        }
    ]
});
this.calendar.render();

when i use this code events that share the same id wouldn’t grouped together when this rendering happens.

example: https://codepen.io/dev1ldragon/pen/jRRPYz

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
acerixcommented, Apr 30, 2019

Reopening because docs still need to be updated

2reactions
arshawcommented, Apr 30, 2019

in v4, you gotta use groupId to associate them together instead of id.

https://codepen.io/arshaw/pen/GLLexQ?editors=0010

the docs are wrong right now (they say id). i’ll update them

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fullcalendar v4 wrong color on background event with inverse ...
Why can't I get white color with two background events with inverse-background rendering? I have found ...
Read more >
Inverse background for some data screens - Forerunner 645/645 M ...
I am not sure if I somehow accidentally switched this, or is it a bug? I tried to delete one screen and add...
Read more >
Docs Background Events - FullCalendar
Inverse Backgrounds. The spans of time not occupied by an event can be colored by setting the display property to "inverse-background" :.
Read more >
Inverse background masks (Example) | Treehouse Community
Inverse background masks. Hi,. I'm trying to cut text and images out of their backgrounds in order that the page background image can...
Read more >
Bug found in Atherton food, second incident in under five months
Another unidentified bug was found on a piece of broccoli in the Atherton dining hall on Aug. 30, the second occurrence in just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found