From 83591923b67cec14399ab51b362912c4939b5fb9 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 3 Dec 2020 18:09:40 +0100 Subject: [PATCH] range: `steps` property not working --- CHANGELOG.md | 1 + src/client/widgets/sliders/range.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2e3c1b2..cf957dd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - editor: cloned `dropdown` and `input` widgets not opening when selected - widgets: prevent value-stateless widgets (tap buttons, clone, scripts, html and svg) from sending a value for cross-client synchronization (leads to unexpected script execution) and exclude them from state saves - input: apply `decimals` number before checking the value against the `validation` expression + - range: `steps` property not working ## 1.7.3 diff --git a/src/client/widgets/sliders/range.js b/src/client/widgets/sliders/range.js index 8dc2d2fd..32d04028 100644 --- a/src/client/widgets/sliders/range.js +++ b/src/client/widgets/sliders/range.js @@ -28,6 +28,7 @@ class Range extends Fader { horizontal:this.getProp('horizontal'), default:this.getProp('default').length === 2 ? this.getProp('default')[0] : this.getProp('range').min, snap:this.getProp('snap'), + steps:this.getProp('steps'), spring:this.getProp('spring'), range:this.getProp('range'), decimals:this.getProp('decimals'), @@ -41,6 +42,7 @@ class Range extends Fader { horizontal:this.getProp('horizontal'), default:this.getProp('default').length === 2 ? this.getProp('default')[1] : this.getProp('range').max, origin: this.getProp('default').length === 2 ? this.getProp('default')[1] : this.getProp('range').max, + steps:this.getProp('steps'), snap:this.getProp('snap'), spring:this.getProp('spring'), range:this.getProp('range'), @@ -383,7 +385,7 @@ class Range extends Fader { Range.dynamicProps = Range.prototype.constructor.dynamicProps - .filter(n => !['spring', 'decimals'].includes(n)) + .filter(n => !['spring', 'decimals', 'steps'].includes(n)) module.exports = Range