Skip to content

Commit 5c6b237

Browse files
lbogdanCompuIves
authored andcommitted
Sandbox preview: make navigator's back button inactive on first load (#196)
1 parent 84642fa commit 5c6b237

File tree

1 file changed

+1
-1
lines changed
  • src/app/components/sandbox/Preview

1 file changed

+1
-1
lines changed

src/app/components/sandbox/Preview/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export default class Preview extends React.PureComponent<Props, State> {
350350
url={decodeURIComponent(url)}
351351
onChange={this.updateUrl}
352352
onConfirm={this.sendUrl}
353-
onBack={historyPosition > 0 && this.handleBack}
353+
onBack={historyPosition > 1 && this.handleBack}
354354
onForward={
355355
historyPosition < history.length - 1 && this.handleForward
356356
}

0 commit comments

Comments
 (0)