From 651b19c8e625f69806d61a7ffd169ecd4acfc8ed Mon Sep 17 00:00:00 2001 From: Jim Myers Date: Fri, 5 Jun 2020 10:36:46 -0400 Subject: [PATCH] Default to autorefresh. --- src/index.tsx | 2 -- src/spectrum/index.tsx | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 6a4a90f..570dad7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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(, element); diff --git a/src/spectrum/index.tsx b/src/spectrum/index.tsx index 771410a..3c16532 100644 --- a/src/spectrum/index.tsx +++ b/src/spectrum/index.tsx @@ -81,6 +81,7 @@ class Spectrum extends Component { static defaultProps = { mode: "light", + autoRefresh: true, }; constructor() {