diff options
author | Florrie <towerofnix@gmail.com> | 2018-07-04 22:50:39 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-07-04 22:50:39 -0300 |
commit | eebff4fbbac489f96954f05d6d0d838c62a8e6c7 (patch) | |
tree | d98e02291111578f298460b5c4e250c5959036e6 /ui/form/Form.js | |
parent | 4ddc3ece7d713633347f2702c30806b4a2e18ca4 (diff) |
An assortment of changes to how selected/unselected works
Diffstat (limited to 'ui/form/Form.js')
-rw-r--r-- | ui/form/Form.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/form/Form.js b/ui/form/Form.js index 87763bb..ac9f1e4 100644 --- a/ui/form/Form.js +++ b/ui/form/Form.js @@ -117,7 +117,9 @@ module.exports = class Form extends FocusElement { } } - focused() { - this.updateSelectedElement() + selected() { + if (this.root.selectedElement === this) { + this.updateSelectedElement() + } } } |