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 ResourceFilter change listener has wrong 'oldValue' on select #7132

Closed
lx-0 opened this issue Jul 7, 2023 · 0 comments
Closed

Calendar ResourceFilter change listener has wrong 'oldValue' on select #7132

lx-0 opened this issue Jul 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@lx-0
Copy link

lx-0 commented Jul 7, 2023

The Calendar 5.4.0 ResourceFilter change listener gets the current selected values in parameter oldValue on select. Making it impossible to determine, which entry was selected. When deselecting, the oldValue and value are correct.

To check the issue, you just need to add the listener to the current Calendar ResourceView example:

            resourceFilter : {
                // Initially select resource IDs 2, 3 and 4
                selected : [2, 3, 4],
                listeners: {
                    change: ({ ...rest }) => console.log('ResourceFilter.change', rest)
                }
            }

Select:
image

Deselect:
image

@matsbryntse matsbryntse self-assigned this Jul 7, 2023
@matsbryntse matsbryntse added ready for review Issue is fixed, the pull request is being reviewed bug Something isn't working resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels Jul 7, 2023
@matsbryntse matsbryntse added this to the 5.4.1 milestone Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants