-
Notifications
You must be signed in to change notification settings - Fork 649
Bump behaviors to v1.10.0; adds new prop to FilteredActionList #7436
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
base: main
Are you sure you want to change the base?
Changes from all commits
5b4b29f
05d3f75
6a2cc31
b3849c7
3454798
f1d6be8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@primer/react': minor | ||
| --- | ||
|
|
||
| FilteredActionList: Adds new prop `scrollBehavior` to allow customization of scroll behavior |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -106,6 +106,12 @@ export interface FilteredActionListProps extends Partial<Omit<GroupedListProps, | |||||
| * Default is false. | ||||||
| */ | ||||||
| focusPrependedElements?: boolean | ||||||
| /** | ||||||
| * Determines the scroll behavior of the container when an item is focused. | ||||||
| * | ||||||
| * @default 'auto' | ||||||
| */ | ||||||
| scrollBehavior?: ScrollBehavior | ||||||
|
||||||
| scrollBehavior?: ScrollBehavior | |
| scrollBehavior?: 'auto' | 'instant' | 'smooth' |
Copilot
AI
Jan 14, 2026
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.
The condition for triggering scroll has been changed from directlyActivated to (directlyActivated || focusPrependedElements). This behavioral change is not documented in the PR description or changeset, and it's unclear if this is intentional or a side effect. If this is an intentional fix, it should be documented separately. If it's related to the scrollBehavior feature, the relationship should be explained.
| if (current && scrollContainerRef.current && (directlyActivated || focusPrependedElements)) { | |
| if (current && scrollContainerRef.current && directlyActivated) { |
Uh oh!
There was an error while loading. Please reload this page.