Skip to content

[Textfield] multiline: correct cursor positioning on click in padding-area #23928

Closed

Description

@FranBran
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When clicking the padding-area, the cursor jumps to the last known cursor position

multiline

Expected Behavior 🤔

When clicking the padding-area, the cursor jumps to the nearest position like it does for single-line textfields

singleline

Your Environment 🌎

can be reproduced on demo site with e.g. Firefox 81

Activity

  1. oliviertassinari commented on Dec 10, 2020

    @oliviertassinari
    Member

    We had a similar topic about caret position a #23096. But it seems different. Currently the padding structure yields the following scroll outcome:

    Capture d’écran 2020-12-10 à 20 07 10

    We could potentially change it to:

    Capture d’écran 2020-12-10 à 20 07 03

    Notice that the top & bottom is the same (we can't change it), it's not perfect but it's already an improvement.

    I think that if we decide to spend time on this, we might as well explore #22544 (comment).

  2. Austin1serb commented on Nov 13, 2024

    @Austin1serb

    This issue still exists, and I would love to try and fix it

  3. KaiValar commented on Nov 21, 2024

    @KaiValar

    This happens to me too, but just in Firefox. In others browsers (Chrome, Safari, Edge, etc.) works as expected.

  4. added
    ready to takeHelp wanted. Guidance available. There is a high chance the change will be accepted
    type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
    on Apr 19, 2026
  5. github-actions commented on Oct 27, 2026

    @github-actions
    Contributor

    This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
    Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.


    @FranBran Thanks again for creating this issue! If you have a moment, we would love to hear your thoughts on how we handled it with this short feedback form.

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

    ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: text fieldChanges related to the text field.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions