diff --git a/app/renderer/components/tabs/content/closeTabIcon.js b/app/renderer/components/tabs/content/closeTabIcon.js index 5d4acf4865b..192f1b0c333 100644 --- a/app/renderer/components/tabs/content/closeTabIcon.js +++ b/app/renderer/components/tabs/content/closeTabIcon.js @@ -32,6 +32,7 @@ class CloseTabIcon extends React.Component { constructor (props) { super(props) this.onClick = this.onClick.bind(this) + this.onDragStart = this.onDragStart.bind(this) } get frame () { @@ -49,6 +50,10 @@ class CloseTabIcon extends React.Component { } } + onDragStart (event) { + event.preventDefault() + } + mergeProps (state, ownProps) { const currentWindow = state.get('currentWindow') const isPinnedTab = frameStateUtil.isPinned(currentWindow, ownProps.frameKey) @@ -77,6 +82,8 @@ class CloseTabIcon extends React.Component { className={css(this.props.showCloseIcon && styles.closeTab)} l10nId='closeTabButton' onClick={this.onClick} + onDragStart={this.onDragStart} + draggable='true' /> } } diff --git a/app/renderer/components/tabs/content/tabIcon.js b/app/renderer/components/tabs/content/tabIcon.js index a3704504582..1ac6b4def29 100644 --- a/app/renderer/components/tabs/content/tabIcon.js +++ b/app/renderer/components/tabs/content/tabIcon.js @@ -33,6 +33,8 @@ class TabIcon extends ImmutableComponent { return
{ this.props.symbol