range: steps property not working

This commit is contained in:
bordun 2020-12-03 18:09:40 +01:00
parent 52c933c7c8
commit 83591923b6
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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