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

Calendar "select all Items" is not working if inline data used #4217

Closed
chuckn0rris opened this issue Feb 16, 2022 · 0 comments
Closed

Calendar "select all Items" is not working if inline data used #4217

chuckn0rris opened this issue Feb 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@chuckn0rris
Copy link

Forum post

Use this code to reproduce

let resources = [{ id: 'r1', name: 'Google', eventColor: 'blue' }];
let events = [{ id: 1, name: 'Meeting', startDate: '2022-02-11 14:00', endDate: '2022-02-11 17:00' }];
let assignments = [{ eventId: 1, resourceId: 'r1' }];

const calendar = new Calendar({
    // Start life looking at this date
    date : new Date(2020, 9, 12),

    resources: resources,
    events: events,
    assignments: assignments,

    sidebar : {

        resourceFilter : {
            multiSelect   : true,
            selectAllItem : true
        }
    },

    appendTo : 'container',

    features : {
        eventTooltip : {
            // Configuration options are passed on to the tooltip instance
            // We want the tooltip's left edge aligned to the right edge of the event if possible.
            align : 'l-r'
        }
    }
});

An error

List.js:773 Uncaught TypeError: Cannot read properties of null (reading 'classList')
    at ResourceFilter.updateSelectAllState (List.js:773:21)
    at ResourceFilter.onSelectionChange (List.js:755:32)
    at ResourceFilter.onSelectionChange (ResourceFilter.js:122:15)
    at Collection.trigger (Events.js:1251:35)
    at Collection.splice (Collection.js:676:16)
    at Collection.add (Collection.js:383:18)
    at ResourceFilter.initFilter (ResourceFilter.js:111:27)
    at ResourceFilter.updateEventStore (ResourceFilter.js:94:18)
    at ResourceFilter.set (Config.js:372:36)
    at Sidebar.updateEventStore (Sidebar.js:179:39)
@chuckn0rris chuckn0rris added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Feb 16, 2022
@chuckn0rris chuckn0rris changed the title Calendar select All Items not working if inline data used Calendar "select all Items" is not working if inline data used Feb 16, 2022
@isglass isglass added this to the 5.0.x milestone Feb 16, 2022
@ExtAnimal ExtAnimal self-assigned this Feb 16, 2022
@ExtAnimal ExtAnimal added in progress ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed in progress ready for review Issue is fixed, the pull request is being reviewed labels Feb 16, 2022
@SergeyMaltsev SergeyMaltsev modified the milestones: 5.0.x, 4.3.9 Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

4 participants