react-chessboard-ui 2.5.0 → 2.6.0

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.
package/dist/index.js CHANGED
@@ -2602,6 +2602,7 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2602
2602
  } else {
2603
2603
  var nextMoves = JSChessEngine.getNextMoves(updatedCells, fromPos, linesCheck, boardReversed);
2604
2604
  setPossibleMoves(nextMoves);
2605
+ setClickPossibleMoves(nextMoves);
2605
2606
  }
2606
2607
  }
2607
2608
  setActualState(updatedCells);
@@ -2619,8 +2620,6 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2619
2620
  FEN: FEN
2620
2621
  };
2621
2622
  toggleCurrentColor();
2622
- setClickedFigure(undefined);
2623
- clearClickedPos();
2624
2623
  clearArrows();
2625
2624
  clearMarkedCells();
2626
2625
  return {
@@ -2684,8 +2683,6 @@ var useChessBoardInteractive = function useChessBoardInteractive(props) {
2684
2683
  };
2685
2684
  setNewMove(change);
2686
2685
  setMovesTrail([moveData.from, moveData.to]);
2687
- clearClickedPos();
2688
- clearClickPossibleMoves();
2689
2686
  };
2690
2687
  var handleClickForTargetCell = function handleClickForTargetCell(cellPos, withTransition) {
2691
2688
  if (withTransition === void 0) {