-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Take advantage of short-circuiting to avoid calling getComputedStyle on non-scrollable elements. * Add changeset. * Update .changeset/nervous-apricots-search.md Co-authored-by: Josh Black <joshblack@github.com> Co-authored-by: Josh Black <joshblack@github.com>
- Loading branch information
1 parent
dcb51c6
commit dd1e5ce
Showing
2 changed files
with
6 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': patch | ||
--- | ||
|
||
Update `isScrollable` utility to only run `getComputedStyle` on scrollable content. |
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