willb335 / chessboardjsx

:black_square_button: Chessboard built for React
https://chessboardjsx.com
MIT License
267 stars 79 forks source link

wasSquareClicked is not a function #42

Closed jesperschlegel closed 4 years ago

jesperschlegel commented 5 years ago

"wasSquareClicked" is undefined if sparePieces are enabled and the onDrop handler is defined. Example:

<Chessboard onDrop={(data) => {console.log(data)}} sparePieces={true}/>

Just drag a spare piece on the chessboard

willb335 commented 5 years ago

I just closed issue #44 which may have solved this issue, could you take a look?