Hi,
i've noteced that this methods seems bugged on the site and in my implementation too, i try the example in your site and the flag showNotation at true don't show the positions and the onMoveEnd don't trigger, in facts the consoles messages don't show up.
The onDrop method trigger an error "ReferenceError: Chessboard is not defined" and the onDrop with snapback trigger instead a "Cannot read properties of undefined (reading 'search')" on the "piece" variable.
another note that i made on the old chessboardjs issue track:
onMoveEnd/onChange don't accept any 'snapback' event to revert the move, as the onDrop do.
I'm trying to do the same logic of onDrop but on keyboard input triggering a board.move('') event, as you did in the "Only Allow Legal Moves" example.
the only problem is that there are no other functions to inser the checks.
i must to setup the logic before triggering the board.move() event?
Hi,
i've noteced that this methods seems bugged on the site and in my implementation too, i try the example in your site and the flag showNotation at true don't show the positions and the onMoveEnd don't trigger, in facts the consoles messages don't show up.
The onDrop method trigger an error "ReferenceError: Chessboard is not defined" and the onDrop with snapback trigger instead a "Cannot read properties of undefined (reading 'search')" on the "piece" variable.
another note that i made on the old chessboardjs issue track:
onMoveEnd/onChange don't accept any 'snapback' event to revert the move, as the onDrop do.
I'm trying to do the same logic of onDrop but on keyboard input triggering a board.move('') event, as you did in the "Only Allow Legal Moves" example.
the only problem is that there are no other functions to inser the checks.
i must to setup the logic before triggering the board.move() event?