vitogit / vue-chessboard

Chessboard vue component to load positions, create positions and see threats
http://vitomd.com/vue-chessboard-examples/
GNU General Public License v3.0
165 stars 49 forks source link

Cannot create multiple chess boards using v-for #7

Closed jeanayee closed 4 years ago

jeanayee commented 5 years ago
<div v-for="fen in fens">
   <chessboard :fen="fen" />
</div>

This shows the default starting chessboard setups instead of the associated fens, where fens = ["rnbqkbnr/ppp1pppp/3p4/8/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq -", "r2kr1n1/pp3pbp/6p1/K4b2/2N1p3/1P1qQ2P/P1N2PP1/3R1Rn1 w KQkq -"]

vitogit commented 4 years ago

Hi @jeanayee I can't reproduce that issue. You can check a working example here (Multiple Chessboards with different fens.) https://github.com/vitogit/vue-chessboard-examples#multiple-chessboards-with-different-fens

Source code: https://github.com/vitogit/vue-chessboard-examples/blob/master/src/App.vue#L29

Make sure to use the last version 0.6.5. I will close the issue, but if you still have the same problem let me know and I will reopen