Skip to content

Commit

Permalink
Sandbox preview: make navigator's back button inactive on first load (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lbogdan authored and CompuIves committed Sep 12, 2017
1 parent 84642fa commit 5c6b237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/sandbox/Preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export default class Preview extends React.PureComponent<Props, State> {
url={decodeURIComponent(url)}
onChange={this.updateUrl}
onConfirm={this.sendUrl}
onBack={historyPosition > 0 && this.handleBack}
onBack={historyPosition > 1 && this.handleBack}
onForward={
historyPosition < history.length - 1 && this.handleForward
}
Expand Down

0 comments on commit 5c6b237

Please sign in to comment.