fix analysis explorer close button

This commit is contained in:
Thibault Duplessis 2017-07-05 09:39:50 +02:00
parent 7383d168d2
commit 00a74806ac
2 changed files with 2 additions and 2 deletions

View file

@ -765,7 +765,7 @@ export default class AnalyseController {
this.setAutoShapes();
}
toggleExplorer(): void {
toggleExplorer = (): void => {
if (this.practice) this.togglePractice();
this.explorer.toggle();
}

View file

@ -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');
}