Closed wentaoxu415 closed 1 year ago
thank you. Happy to accept a PR for this change!
Awesome! Will send you a PR for this soon :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.
Describe the bug In the
FacetViewProps
type, the parameters for the callback functions (onRemove
,onChange
,onSelect
) are typed asFieldValue
. https://github.com/elastic/search-ui/blob/main/packages/react-search-ui-views/src/types/index.ts#L68However, those callback functions eventually call search driver actions for filters and the expected type there is
FilterValue
instead ofFieldValue
. (Ex. SeeremoveFilters
To Reproduce See the linked code files.
Expected behavior The type definition for the parameters passed to those callback functions in the
FacetViewProps
should be updated toFilterValue
type.Screenshots N/A
Which backends and packages are you using: Packages: search-ui 1.20.0