chore: Tab title to be empty when creating a new tab (#12773)

* Remove unwanted package lock

* Edit on new and autofocus

* Update test

* Remove autofocus
This commit is contained in:
Geido
2021-02-18 20:14:59 +02:00
committed by GitHub
parent 9335b9c983
commit 409fc83ca9
6 changed files with 57 additions and 15 deletions

View File

@@ -208,9 +208,12 @@ export default class Tab extends React.PureComponent {
<div className="dragdroppable-tab" ref={dragSourceRef}>
<EditableTitle
title={component.meta.text}
defaultTitle={component.meta.defaultText}
placeholder={component.meta.placeholder}
canEdit={editMode && isFocused}
onSaveTitle={this.handleChangeText}
showTooltip={false}
editing={editMode && isFocused}
/>
{!editMode && (
<AnchorLink