Skip to content

Conversation

BennyAJ
Copy link
Contributor

@BennyAJ BennyAJ commented Jul 18, 2018

Fix for my issue #423

Commented out a check which caused the date filter to not update the table when the date or date comparator were cleared

Modified applyFilter in date.js so that it doesn't try to parse an
Invalid Date. It was parsing an empty string, which caused it to pass
through an invalid date to onFilter, and this wasn't being checked for
properly by the onFilter function. It now checks for the empty string
and passes in null, which is what the onFilter function was actually
checking for

table when the date or date comparator were cleared Modified applyFilter in date.js so that it doesn't try to parse an Invalid Date. It was parsing an empty string, which caused it to pass through an invalid date to onFilter, and this wasn't being checked for properly by the onFilter function. It now checks for the empty string and passes in null, which is what the onFilter function was actually checking for
@AllenFang AllenFang merged commit 6522f6d into react-bootstrap-table:develop Jul 25, 2018
@AllenFang
Copy link
Member

@BennyAJ thanks your contribution, I will release in this weekend :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants