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

SelectionList events changes #4759

Merged
merged 2 commits into from
Jul 17, 2024
Merged

SelectionList events changes #4759

merged 2 commits into from
Jul 17, 2024

Conversation

darrenburns
Copy link
Member

Ensures "Toggled" events are sent when bulk toggling via the API occurs.

Also explicitly defines semantics of "toggled" vs "changed" in the docstrings.

Toggled events only fire when the value is explicitly toggled via user interaction or a toggle method. Setting a value programmatically to a value that happens to be the opposite of the current value is not considered a "toggle", although it is considered a "change".

… Its important for callers to know on a per-option basis if one was toggled, and is a reasonable expectation. Also update docs to reflect this..
@darrenburns darrenburns self-assigned this Jul 16, 2024
@darrenburns darrenburns requested a review from willmcgugan July 16, 2024 13:15
@darrenburns darrenburns merged commit 8a16ddf into main Jul 17, 2024
20 checks passed
@darrenburns darrenburns deleted the selection-list-events branch July 17, 2024 12:02
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

Successfully merging this pull request may close these issues.

2 participants