From d013ad704f9aea12357690d05e2ced1482e5f903 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 15 Sep 2019 18:15:56 -0300 Subject: Make InlineListPickerElement update screen --- tui-lib | 2 +- ui.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tui-lib b/tui-lib index 3f76094..d8943db 160000 --- a/tui-lib +++ b/tui-lib @@ -1 +1 @@ -Subproject commit 3f76094c554c23ee3519f41458a04d348f4f75a3 +Subproject commit d8943db70aab7e7192040caaf0bbf02d5ddf429c diff --git a/ui.js b/ui.js index f425048..972e139 100644 --- a/ui.js +++ b/ui.js @@ -1888,6 +1888,9 @@ class InlineListPickerElement extends FocusElement { get curValue() { return this.options[this.curIndex].value } + + get curIndex() { return this.getDep('curIndex') } + set curIndex(v) { return this.setDep('curIndex', v) } } // Quite hacky, but ATM I can't think of any way to neatly tie getDep/setDep -- cgit 1.3.0-6-gf8a5