appbaseio / reactive-manual

Docs for ReactiveSearch (and Maps)
https://opensource.appbase.io/reactive-manual
MIT License
12 stars 20 forks source link

Invalid prop `dataField` of type `array` supplied to `DateRange`, expected `string`. #87

Closed soflass1293 closed 6 years ago

soflass1293 commented 6 years ago

Hello I wanted to filter data by date. I have two fields "startDate" and "endDate" so I opted to use the DateRange with the option of using two fields in dataField... In the official documentation of the DateRange is written: dataField String or Array database field(s) to be connected to the component’s UI view. https://opensource.appbase.io/reactive-manual/range-components/daterange.html But when I use an array of two strings I get a warning Invalid prop dataField of type array supplied to DateRange, expected string. <DateRange ... dataField={["MY_START_DATE", "MY_END_DATE"]} ... />

metagrover commented 6 years ago

Thanks for bringing this up. Track the progress here: https://github.com/appbaseio/reactivesearch/issues/421

davidklebanoff commented 6 years ago

This can be closed now... Unless you want to wait until release.