Skip to content

Commit

Permalink
Fix 3882 (#3886)
Browse files Browse the repository at this point in the history
Add gated input.focus to reinstate previous behavior
  • Loading branch information
themadcreator authored Dec 9, 2019
1 parent 23b6496 commit ba212e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/components/editable-text/editableText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ export class EditableText extends AbstractPureComponent2<IEditableTextProps, IEd
if (input != null) {
this.inputElement = input;

// temporary fix for #3882
if (!this.props.alwaysRenderInput) {
this.inputElement.focus();
}

if (this.state != null && this.state.isEditing) {
const supportsSelection = inputSupportsSelection(input);
if (supportsSelection) {
Expand Down

1 comment on commit ba212e5

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix 3882 (#3886)

Previews: documentation | landing | table

Please sign in to comment.