-
Notifications
You must be signed in to change notification settings - Fork 54
feat(Accessibility): Split action handlers with "OR" condition #1622
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1622 +/- ##
=========================================
+ Coverage 71.28% 71.49% +0.2%
=========================================
Files 846 846
Lines 6938 6945 +7
Branches 1982 1982
=========================================
+ Hits 4946 4965 +19
+ Misses 1986 1974 -12
Partials 6 6
Continue to review full report at Codecov.
|
/** Checks if current tree item has a subtree and it is opened */ | ||
const isSubtreeOpen = (props: TreeItemBehaviorProps): boolean => { | ||
const { items, open } = props | ||
return !!(items && items.length && open) |
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.
Was it determined that checking open
alone was not sufficient?
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.
yes, in TreeItem
subtree is only rendered if open
=== true
and items
is not an empty array
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.
Just one comment, address as you see fit and merge 👍
Based on this initial PR #1588, there was made a decision to split actions in separate PR. And re-think conditional handlers in further discussions.