Hi,
I tried to use the firstFilterProps and the secondFilterProps to get the custom date range. I followed this example:
https://stackblitz.com/edit/react-ma6dmb?file=app%2FcustomFilterUI.jsx
But there is a bug.
firstFilterProps and secondFilterProps can switch places.
Please take a look at the steps I took:
1. I only selected the second filter and then hit the "FILTER" button
2. I reopened the date range filter but the second field is now empty and the value went into the first field
What I saw is that the firstFilterProps can sometimes switch places with the secondFilterProps and that depended on the array itself. So if an array of filters had only a single element it would automatically assume it as the firstFilterProps even if that is not always the case. It would be great if somehow before this it could check and match the same keys firstFilterProps === firstFilterProps, secondFilterProps === secondFilterProps before automatically putting it based on the array length.