diff --git a/src/menu/bookmarks/components/Item/index.tsx b/src/menu/bookmarks/components/Item/index.tsx index b46680536..eb545778c 100644 --- a/src/menu/bookmarks/components/Item/index.tsx +++ b/src/menu/bookmarks/components/Item/index.tsx @@ -124,7 +124,9 @@ export default class Item extends React.Component { } }; - public onEditClick = (e: React.MouseEvent) => {}; + public onInputFocus = (e: React.FocusEvent) => { + e.currentTarget.select(); + }; public render() { const { data } = this.props; @@ -155,6 +157,7 @@ export default class Item extends React.Component { innerRef={r => (this.input = r)} visible={inputVisible} onClick={this.onInputMouseEvent} + onFocus={this.onInputFocus} onMouseDown={this.onInputMouseEvent} onKeyPress={this.onInputKeyPress} placeholder="Name"