diff options
author | anika <anika.ahluwalia@gmail.com> | 2021-01-07 10:34:33 -0600 |
---|---|---|
committer | anika <anika.ahluwalia@gmail.com> | 2021-01-07 10:34:33 -0600 |
commit | aba4a08fccda43e4466707da3b3e4a99a02e3f1a (patch) | |
tree | 83563d1bbbefec1e91139ac0cd75190947b2106c /src/client/views/nodes/SliderBox.tsx | |
parent | e17885ee65cc05a15759024a41dac6374c303d1d (diff) | |
parent | 93703f4c02c4c6e68489aca72bc0460efc3f6f5e (diff) |
merge fix
Diffstat (limited to 'src/client/views/nodes/SliderBox.tsx')
-rw-r--r-- | src/client/views/nodes/SliderBox.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/views/nodes/SliderBox.tsx b/src/client/views/nodes/SliderBox.tsx index c30dcde54..bfe07c22b 100644 --- a/src/client/views/nodes/SliderBox.tsx +++ b/src/client/views/nodes/SliderBox.tsx @@ -41,7 +41,10 @@ export class SliderBox extends ViewBoxBaseComponent<FieldViewProps, SliderDocume onChange = (values: readonly number[]) => runInAction(() => { this.dataDoc[this.minThumbKey] = values[0]; this.dataDoc[this.maxThumbKey] = values[1]; - Cast(this.layoutDoc.onThumbChanged, ScriptField, null)?.script.run({ self: this.rootDoc, range: values, this: this.layoutDoc }); + Cast(this.layoutDoc.onThumbChanged, ScriptField, null)?.script.run({ + self: this.rootDoc, + scriptContext: this.props.scriptContext, range: values, this: this.layoutDoc + }); }) render() { @@ -103,7 +106,7 @@ export class SliderBox extends ViewBoxBaseComponent<FieldViewProps, SliderDocume </Tracks> <Ticks count={5}> {({ ticks }) => ( - <div className="slider-tracks"> + <div className="slider-ticks"> {ticks.map((tick) => ( <Tick key={tick.id} |