Skip to content

Commit

Permalink
Merge pull request #686 from contember/fix/datagrid-number-filter
Browse files Browse the repository at this point in the history
fix number filter
  • Loading branch information
matej21 authored Apr 15, 2024
2 parents dbc0a18 + e4ca1a7 commit 1b1d8f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import { ReactNode } from 'react'
import { createNumberFilter, DataViewFilter, DataViewNullFilterTrigger, DataViewNumberFilterInput, DataViewNumberFilterResetTrigger, NumberRangeFilterArtifacts, useDataViewFilter } from '@contember/react-dataview'
import { createNumberRangeFilter, DataViewFilter, DataViewNullFilterTrigger, DataViewNumberFilterInput, DataViewNumberFilterResetTrigger, NumberRangeFilterArtifacts, useDataViewFilter } from '@contember/react-dataview'
import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover'
import { DataGridActiveFilterUI, DataGridFilterSelectTriggerUI, DataGridSingleFilterUI } from '../ui'
import { DataGridNullFilter } from './common'
Expand All @@ -25,7 +25,7 @@ export const DataGridNumberFilter = Component(({ name: nameIn, field, label }: D
</DataGridSingleFilterUI>
)
}, ({ name, field }) => {
return <DataViewFilter name={getFilterName(name, field)} filterHandler={createNumberFilter(field)} />
return <DataViewFilter name={getFilterName(name, field)} filterHandler={createNumberRangeFilter(field)} />
})


Expand Down

0 comments on commit 1b1d8f2

Please sign in to comment.