Skip to content

Commit

Permalink
Merge pull request #221 from qwerty084/fix/reset-board
Browse files Browse the repository at this point in the history
Fix/reset board
  • Loading branch information
qwerty084 authored Sep 8, 2023
2 parents a5c7b08 + 4b9d540 commit 51b38ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
## v1.2.3 (2023-08-27)

### Bug fixes

- fix resetBoard() method when a piece is selected([#221](https://github.com/qwerty084/vue3-chessboard/pull/221))

## v1.2.2 (2023-08-27)

### Dependencies

- update chessground to latest version ([#219](https://github.com/qwerty084/vue3-chessboard/pull/219))

## v1.2.1 (2023-08-02)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-chessboard",
"version": "1.2.2",
"version": "1.2.3",
"description": "vue3-chessboard is a component library for creating chess web apps with vue3",
"homepage": "https://qwerty084.github.io/vue3-chessboard/",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions src/classes/BoardApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ export class BoardApi {
setConfig(config: BoardConfig, fillDefaults = false): void {
if (fillDefaults) {
config = deepMergeConfig(defaultBoardConfig, config);
this.board.state.selected = undefined;
}

// If user provided a movable.events.after function we patch changeTurn to run before it. We want
Expand Down

0 comments on commit 51b38ae

Please sign in to comment.