From 5c6b2371a8dc64d7522f6e34413684cd561481b8 Mon Sep 17 00:00:00 2001 From: lbogdan Date: Wed, 13 Sep 2017 00:21:47 +0300 Subject: [PATCH] Sandbox preview: make navigator's back button inactive on first load (#196) --- 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 b515506753b..dbcf1141a17 100644 --- a/src/app/components/sandbox/Preview/index.js +++ b/src/app/components/sandbox/Preview/index.js @@ -350,7 +350,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 }