diff --git a/src/client/app/widgets/switchers/state.js b/src/client/app/widgets/switchers/state.js index b52bdc1f..c0ead3c9 100644 --- a/src/client/app/widgets/switchers/state.js +++ b/src/client/app/widgets/switchers/state.js @@ -50,6 +50,8 @@ class State extends Widget { this.saveButton.container.classList.add('not-editable', 'value') this.loadButton.container.classList.add('not-editable', 'value', 'disabled') + this.saveButton.sendValue = this.loadButton.sendValue = ()=>{} + this.widget.appendChild(this.saveButton.container) this.widget.appendChild(this.loadButton.container) @@ -58,6 +60,8 @@ class State extends Widget { var {widget} = e if (widget === this) return + e.stopPropagation = true + if (widget.active) this.setValue(widget === this.saveButton ? 'save' : 'load', {sync: true, send: true}) })