diff --git a/src/components/modals/OpenModal.jsx b/src/components/modals/OpenModal.jsx index 440343c..0f33347 100644 --- a/src/components/modals/OpenModal.jsx +++ b/src/components/modals/OpenModal.jsx @@ -98,6 +98,11 @@ class OpenModal extends React.Component { reader.onerror = e => console.log(e.target); } + onOpenToggle() { + this.clearError(); + this.props.onOpenToggle(); + } + render() { const styleOptions = publicStyles.map(style => { return this.onOpenToggle()} title={'Open Style'} > {errorElement}