From 8253d808ead571f42ae2e5d357626030fd11d082 Mon Sep 17 00:00:00 2001 From: Bogdan Luca Date: Mon, 11 Sep 2017 01:23:43 +0300 Subject: [PATCH] Sandbox preview: make navigator's back button inactive on first load. --- src/app/components/sandbox/Preview/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/sandbox/Preview/index.js b/src/app/components/sandbox/Preview/index.js index 93df264cc06..2fa3f79a8b1 100644 --- a/src/app/components/sandbox/Preview/index.js +++ b/src/app/components/sandbox/Preview/index.js @@ -351,7 +351,7 @@ export default class Preview extends React.PureComponent { 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 }