Open gatsoevaulyana opened 3 years ago
I copied this component from demo source. An error occurs after click on the Edit field button
<ReactJson name={false} collapsed={collapsed} style={style} theme={theme} src={src} collapseStringsAfterLength={collapseStringsAfter} onEdit={ onEdit ? e => { console.log(e); this.setState({ src: e.updated_src }); } : false } onDelete={ onDelete ? e => { console.log(e); this.setState({ src: e.updated_src }); } : false } onAdd={ onAdd ? e => { console.log(e); this.setState({ src: e.updated_src }); } : false } displayObjectSize={displayObjectSize} enableClipboard={enableClipboard} indentWidth={indentWidth} displayDataTypes={displayDataTypes} iconStyle={iconStyle} />
I copied this component from demo source. An error occurs after click on the Edit field button
<ReactJson name={false} collapsed={collapsed} style={style} theme={theme} src={src} collapseStringsAfterLength={collapseStringsAfter} onEdit={ onEdit ? e => { console.log(e); this.setState({ src: e.updated_src }); } : false } onDelete={ onDelete ? e => { console.log(e); this.setState({ src: e.updated_src }); } : false } onAdd={ onAdd ? e => { console.log(e); this.setState({ src: e.updated_src }); } : false } displayObjectSize={displayObjectSize} enableClipboard={enableClipboard} indentWidth={indentWidth} displayDataTypes={displayDataTypes} iconStyle={iconStyle} />