-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OverflowList] add onOverflow callback prop (#2975)
* complete refactor to tests with a sweet harness * add onOverflow callback prop & isResizing state & test. * short example crumbs so they can all be visible * only invoke onOverflow when items change added some state fields to support this logic. complex stuff as it can happen over several renders. * more onOverflow tests & helper * more docs, combine if * reset lastOverflow with new props * simplify lastOverflow check - just length * lastOverflowCount defaults to 0 * fix name in comment
- Loading branch information
Showing
3 changed files
with
117 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8f86ea9
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.
[OverflowList] add onOverflow callback prop (#2975)
Previews: documentation | landing | table