diff --git a/CHANGELOG.md b/CHANGELOG.md index 38b339a0..71d227a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,17 @@ # Changelog +# 1.8.10 + +- bug fixes + - modal: issues with children's visibility + # 1.8.9 - bug fixes - script: issue when using the `options` argument in `set()` (options leaked to subsequent set() calls in the script) - multixy: `decimals` property not applied - multixy: spring behavior not working until all points are released - - custom module: prevent require() from reading submodules files each time and instead return the object in memory + - custom module: prevent require() from reading submodules files each time and instead return the object in memory # 1.8.8 diff --git a/src/client/ui/ui-colorpicker.js b/src/client/ui/ui-colorpicker.js index 5871f016..8d962438 100644 --- a/src/client/ui/ui-colorpicker.js +++ b/src/client/ui/ui-colorpicker.js @@ -100,13 +100,6 @@ class ColorPicker extends UiWidget { } - childrenVisible() { - - return true - - } - - setName(n = '') { this.name = n diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 84749641..4892c509 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -1065,13 +1065,7 @@ class Widget extends EventEmitter { isVisible() { - return this.getProp('visible') && this.parent.childrenVisible() - - } - - childrenVisible() { - - return this.isVisible() + return this.getProp('visible') && this.parent.isVisible() } diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index 1010654c..b3cc5311 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -126,13 +126,6 @@ class Modal extends Panel { } - - childrenVisible() { - - return this.init && this.value && this.isVisible() - - } - setValue(v, options={}) { if (this.init === undefined) return