Skip to content

Commit

Permalink
Fixed random scroll bug on dropdown
Browse files Browse the repository at this point in the history
Before: When hovering on the options the dropdown scrolls randomly
The issue is described here: microsoft/fluentui#8748
Setting calloutProps solves the issue
  • Loading branch information
AhashSritharan committed Jan 11, 2024
1 parent e16959d commit fa495d9
Show file tree
Hide file tree
Showing 2 changed files with 8,503 additions and 28 deletions.
1 change: 1 addition & 0 deletions LookupToPicklist/LookupToPicklist/SearchableDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const SearchableDropdown: React.FunctionComponent<IDropdownProps> = props
<Dropdown
{...props}
styles={DropdownStyle}
calloutProps={{ calloutMaxHeight: 300 }}
onDismiss={() => setSearchText('')}
selectedKey = {props.selectedKey}
options={[
Expand Down
Loading

0 comments on commit fa495d9

Please sign in to comment.