« get me outta code hell

tui-lib - Pure Node.js library for making visual command-line programs (ala vim, ncdu)
about summary refs log tree commit diff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/Dialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/Dialog.js b/ui/Dialog.js
index 85ff087..d200d08 100644
--- a/ui/Dialog.js
+++ b/ui/Dialog.js
@@ -30,8 +30,8 @@ module.exports = class Dialog extends FocusElement {
   }
 
   open() {
-    this.opened()
     this.oldSelectedElement = this.root.selectedElement
+    this.opened()
     this.visible = true
     this.root.select(this)
     this.fixLayout()