Skip to content

Commit

Permalink
fix: prevent dropdown menu closure on scrollbar click
Browse files Browse the repository at this point in the history
  • Loading branch information
webloopbox committed Apr 28, 2024
1 parent cb86f7d commit e35d75a
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 e35d75a

Please sign in to comment.