Closed ahmetunal closed 2 years ago
@ahmetunal Hmm, that's a great catch! I think it was my fault, I was a bit desperate in "silencing" the TypeScript errors so I cast it to a string. I later made this a string | number
but forgot to revert the string assignment:
I didn't consider the scenario of a non-flat table column data. In that case, could you update the above line to this as well? I just tested it in my local and with your change, the build still passes, so it should be fine.
Record<keyof TColumnType, (column: TColumnType) => TReturnType>
@imballinst I just pushed the update
It should be released as react-bs-datatable@3.0.1
now. @ahmetunal when you have the time, could you verify if this version works as this PR does? Thanks!
@imballinst, I tested it, it works. Thanks. 👍
Bug: Sorting wasn't working when the row contains an object (was working in v2)
Example:
we want to order by last name, we can send this with
sortProps
@imballinst This was working in v2, but I see you changed
sortFn(quantifiedValue1)
intosortFn(`${quantifiedValue1}`)
. Is there any specific reason for this change I'm missing?