editor: Fix selected turn on load
parent
fb279c8326
commit
d88d82484f
|
@ -174,7 +174,8 @@ function controls(ctrl: EditorCtrl, state: EditorState): VNode {
|
|||
'option',
|
||||
{
|
||||
attrs: {
|
||||
value: key[0] == 'w' ? 'white' : 'black',
|
||||
value: key[0] === 'w' ? 'white' : 'black',
|
||||
selected: key[0] === ctrl.turn[0],
|
||||
},
|
||||
},
|
||||
ctrl.trans(key)
|
||||
|
|
Loading…
Reference in New Issue