1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-23 08:43:18 +02:00

reset buttons for all graphics (#230)

* reset buttons for all graphics

* resetting

* .

* build

* build
This commit is contained in:
Pomax
2020-01-05 11:57:46 -08:00
committed by GitHub
parent d695c08480
commit f4e9f77f9c
15 changed files with 118 additions and 50 deletions

View File

@@ -3,7 +3,7 @@ var React = require("react");
class SliderSet extends React.Component {
constructor(props) {
super(props);
this.options = props.options || [];
this.setOptions(props.options);
}
render(props) {
@@ -35,7 +35,7 @@ class SliderSet extends React.Component {
}
setOptions(options, labels) {
this.options = options;
this.options = options || [];
this.forceUpdate();
}
}