Fix CMD+A backspace issue

- Closes #272
main
Mike Fix 7 years ago
parent b9b22f8034
commit 1b5ed6a60c

@ -461,5 +461,6 @@ export const DEFAULT_SETTINGS = {
lineNumbers: false, lineNumbers: false,
exportSize: '2x', exportSize: '2x',
titleBar: '', titleBar: '',
watermark: false watermark: false,
squaredImage: false
} }

@ -238,7 +238,7 @@ class Editor extends React.Component {
onAspectRatioChange={this.updateAspectRatio} onAspectRatioChange={this.updateAspectRatio}
updateTitleBar={this.updateTitleBar} updateTitleBar={this.updateTitleBar}
> >
{this.state.code || DEFAULT_CODE} {this.state.code != null ? this.state.code : DEFAULT_CODE}
</Carbon> </Carbon>
</Overlay> </Overlay>
)} )}

Loading…
Cancel
Save