react-chessboard-ui 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2705,7 +2705,7 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2705
2705
  clearMarkedCells();
2706
2706
  clearArrows();
2707
2707
  if (viewOnly) return;
2708
- if (clickedPos[0] === -1) {
2708
+ if (clickedPos[0] === -1 || JSChessEngine.hasFigure(actualState, cellPos) && JSChessEngine.getFigureColor(actualState, cellPos) === currentColor) {
2709
2709
  selectClickFrom(cellPos);
2710
2710
  return;
2711
2711
  }