-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[TreeView] Disable all selection when disableSelection #20146
[TreeView] Disable all selection when disableSelection #20146
Conversation
Details of bundle changes.Comparing: 5a794bd...c52868c Details of page changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the extensive work on TreeView!
Would it make more sense to use no-ops (() => false
) in the select*
methods when disableSelection
is true? This seems more sensible than testing for disableSelection
at every call site. For the instances where we preventDefault on successful selection we should check the return value of the corresponding select*
method.
/cc @joshwooding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see if noops fares better than early return.
@tonyhallett Thanks for the continued work on TreeView! |
Closes #20099