diff --git a/CHANGELOG.md b/CHANGELOG.md index 116d12a3..63c4e0da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.9.1 +- bug fixes + - button: all writing strings like `"1.0"` in `label` without removing the decimals + - midi - allow sending note off with velocity - add option for receiving note off with velocity diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 06771be9..ef31c42c 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -703,7 +703,7 @@ class Widget extends EventEmitter { propValue = propValue.replace(new RegExp(k, 'g'), v) } - if (isJSON(propValue)) { + if (isJSON(propValue) && (propName !== 'label' || propValue === 'false')) { try { propValue = JSON.parse(propValue) } catch (err) {}