dead-brownD
Refine3mo ago
16 replies
dead-brown

Missing props on FilterDropDownProps

I'm building a custom column filter for an ant design table component that looks like this:

export const simpleFilterInput = (columnProps: SimpleColumnProps, filterDropdownProps: FilterDropdownProps): React.ReactElement => {
return <FilterDropdown { ... filterDropdownProps} >
<InputNumber onPressEnter={() => { filterDropdownProps.confirm() }} />
</FilterDropdown>
}

This works fine when I test it: I see the column filter is a number box and when I hit enter, the filter is automatically applied rather than requiring me to click the button. However, after I posted my code to github, the CI/CD runner is complaining that 'confirm' doesn't exist on FilterDropdownProps (though the error provides a fully annotated type with only 'mapValue' and 'children' properties. Why would that be?
Was this page helpful?