cm-chessboard 7.6.5 → 7.6.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "7.6.5",
3
+ "version": "7.6.7",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -335,7 +335,6 @@ export class ChessboardView {
335
335
  const data = {
336
336
  chessboard: this.chessboard,
337
337
  type: INPUT_EVENT_TYPE.moveInputStarted,
338
- square: square, // TODO this one is deprecated 2023-03-18
339
338
  squareFrom: square,
340
339
  piece: this.chessboard.getPiece(square)
341
340
  }
@@ -199,6 +199,11 @@ export class VisualMoveInput {
199
199
  this.contextMenuListener = null
200
200
  }
201
201
  this.setMoveInputState(MOVE_INPUT_STATE.waitForInputStart)
202
+ // set temporarily hidden pieces visible again
203
+ const hiddenPieces = this.view.piecesGroup.querySelectorAll("[visibility=hidden]")
204
+ for (let i = 0; i < hiddenPieces.length; i++) {
205
+ hiddenPieces[i].removeAttribute("visibility")
206
+ }
202
207
  break
203
208
 
204
209
  default: