Skip to content

Commit

Permalink
Merge pull request #369 from abdullahahmeda/fix/filters-trigger-sorting
Browse files Browse the repository at this point in the history
fix: filters trigger sorting
  • Loading branch information
icflorescu committed Jul 11, 2023
2 parents 516894d + 0220a82 commit 6e1fb51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/DataTableHeaderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ function Filter<T>({ children, isActive }: { children: DataTableColumn<T>['filte
<IconFilter size={14} />
</ActionIcon>
</Popover.Target>
<Popover.Dropdown>{typeof children === 'function' ? children({ close }) : children}</Popover.Dropdown>
<Popover.Dropdown onClick={(e) => e.preventDefault()}>
{typeof children === 'function' ? children({ close }) : children}
</Popover.Dropdown>
</Popover>
);
}
Expand Down

0 comments on commit 6e1fb51

Please sign in to comment.