Skip to content

Commit

Permalink
Merge pull request #395 from silevis/v4-fix/dropdown-cell-blurring
Browse files Browse the repository at this point in the history
V4 fix: prevent dropdown menu closure on scrollbar click
  • Loading branch information
MichaelMatejko committed May 8, 2024
2 parents cde53b6 + e35d75a commit 19d7273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/CellTemplates/DropdownCellTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,5 @@ const CustomOption: React.FC<OptionProps<OptionType, false>> = ({ innerProps, la
);

const CustomMenu: React.FC<MenuProps<OptionType, false>> = ({ innerProps, children }) => (
<div {...innerProps} className='rg-dropdown-menu'>{children}</div>
<div {...innerProps} className='rg-dropdown-menu' onPointerDown={e => e.stopPropagation()}>{children}</div>
);

0 comments on commit 19d7273

Please sign in to comment.