Skip to content

onMoveEnd, showNotation, onDrop problems #49

Description

@eparisio

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions