Default to autorefresh.

This commit is contained in:
Jim Myers 2020-06-05 10:36:46 -04:00
parent 866f129b9a
commit 651b19c8e6
2 changed files with 1 additions and 2 deletions

View File

@ -32,8 +32,6 @@ export default class Flipside {
spectrum(el: string, opts: SpectrumProps): void {
const element = document.getElementById(el);
// console.log("super: ", Spectrum.defaultProps, opts);
// throw Error();
const props = defaultsWithoutArrays(Spectrum.defaultProps, opts);
render(<Spectrum {...props} api={this.api} />, element);

View File

@ -81,6 +81,7 @@ class Spectrum extends Component<Props, State> {
static defaultProps = {
mode: "light",
autoRefresh: true,
};
constructor() {