Closed MKrutii closed 4 months ago
Oh good find!
targetTouches
is undefined at https://github.com/schrodinger/fixed-data-table-2/blob/522e82be907c41c250b231a76e3127abed9aed81/src/plugins/Scrollbar.js#L527-L537
because we're actually doing a normal mouse click instead of a "touch" click.
But the code shouldn't have reached here in the first place.
The root problem is that FDT thinks it's a touch event because of the way we use the ||
operator in https://github.com/schrodinger/fixed-data-table-2/blob/522e82be907c41c250b231a76e3127abed9aed81/src/plugins/Scrollbar.js#L358-L364
We should instead use the ??
operator for cases like this.
I'll put a quick fix.
Fixed via #724 and released with v2.0.12.
Noticed an issue that cause error in the console/rollbar
Expected Behavior
No errors in the console
Current Behavior
Possible Solution
For some reason
targetTouches
is undefined, the logic might be improved to have the optional chaining or other solutionSteps to Reproduce (for bugs)
Can be reproducible in the examples page
Your Environment