I have a react table which gets populated from an API. I wanted to filter a column based on a Date range picker. Problem is that the code does not reach the FilterMethod. What could I be doing wrong?. Here is my code
const columnsvisit = [{
id: 'date',
Header: 'Date',
accessor: rowProps => rowProps.date,
Filter: ({ filter, onChange }) =>
<div>
<DateRangePicker startDate={this.state.startDate}
endDate={this.state.endDate} ranges={this.state.ranges}
onEvent={this.handleEvent}
>
<Button className="selected-date-range-btn" style={{width:'100%'}}>
<span >
<input type="text" name="labrl" value={label }
onChange={event => onChange(event.target.value)} readOnly
/>
</span>
<span className="caret"></span>
</Button>
</DateRangePicker>
</div>,
filterMethod: (filter, row) => {
console.log(filter.value)
},