fix analysis explorer close button
This commit is contained in:
parent
7383d168d2
commit
00a74806ac
|
@ -765,7 +765,7 @@ export default class AnalyseController {
|
|||
this.setAutoShapes();
|
||||
}
|
||||
|
||||
toggleExplorer(): void {
|
||||
toggleExplorer = (): void => {
|
||||
if (this.practice) this.togglePractice();
|
||||
this.explorer.toggle();
|
||||
}
|
||||
|
|
|
@ -188,7 +188,7 @@ function showDtz(stm, move): VNode | null {
|
|||
function closeButton(ctrl: AnalyseController): VNode {
|
||||
return h('button.button.text', {
|
||||
attrs: dataIcon('L'),
|
||||
hook: bind('click', ctrl.toggleExplorer)
|
||||
hook: bind('click', ctrl.toggleExplorer, ctrl.redraw)
|
||||
}, 'Close');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue