Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed edge case for promoting immediately after FEN is loaded #41

Closed
wants to merge 1 commit into from
Closed

fixed edge case for promoting immediately after FEN is loaded #41

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 21, 2021

If the developer/user loads the following FEN, '8/8/Q7/3n4/6P1/K7/1pkn4/5B2 b - - 0 1', the promote function provided via the prop is not recognized until after the first move.

This pull request updates the this.promotions array in the mounted function.

To see this in action, I have made a second branch, https://github.com/jmil-hall/vue-chessboard/tree/test-bug-fix, that tests the bug fix.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant