Skip to content

Caret always jumps to the end when inserting a completion #3834

Closed

Description

@carlrosell

Description

When inserting an emoji or mention in the commit message, the caret will always jump to the end of the text.

Version

GitHub Desktop version: 8304e9c

OS version: macOS High Sierra

Steps to Reproduce

  1. Start writing a commit message
  2. Go to the beginning of the message
  3. Insert an emoji or mention

Expected behavior: The caret should stay right where the completion was inserted

Actual behavior: The caret jumps to the end of the message

Reproduces how often: 100%

Activity

  1. shiftkey commented on Jan 22, 2018

    @shiftkey
    Member

    This feels very similar to #3354 which we fixed by being more careful with props and setState changes - see #3411 for the fix.

    I'll look at #3835 in the meantime but it'd be nice to see if reusing our fixed TextBox component can help to address this problem.

  2. shiftkey commented on Jan 30, 2018

    @shiftkey
    Member

    I'll look at #3835 in the meantime but it'd be nice to see if reusing our fixed TextBox component can help to address this problem.

    This requires some refactoring of the autocomplete providers, and probably is worth deferring if #3835 addresses the problem well enough.

  3. added
    bug
    on Jan 30, 2018
  4. added this to the 1.1.x milestone on Feb 22, 2018
  5. locked as resolved and limited conversation to collaborators on Jul 18, 2018
  6. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions