Skip to content

Bug: Layout shifts while using typeahead menu #3716

Closed

Description

@harish-sethuraman

While the page is longer than just the viewport height with the typeahead menu open, while navigating through keyboard, on reaching the last value and pressing bottom button again shifts the page. I don't think this is expected?

Lexical version:

Steps To Reproduce

  1. Go to https://playground.lexical.dev/
  2. Copy and paste content so that content is more than one page long
  3. try :a
  4. navigate using keyboard until last option and while at last option click the down button again.

The current behavior

While first element comes to focus through keyboard from the last element screen shifts.

playground-bug.mov

The expected behavior

This should'nt happen

Activity

  1. blacktoast commented on Feb 3, 2023

    @blacktoast
    Contributor

    I want to solve this issue, May I fix it? @thegreatercurve

    and I'm new to the project so If I get any additional details like codes focus on or document recommened would be helpful

  2. thegreatercurve commented on Feb 3, 2023

    @thegreatercurve
    Contributor

    Feel free to take a look @blacktoast. We've not got any docs for this, but all of the logic for this typeahead is in /packages/lexical-react/src/LexicalTypeaheadMenuPlugin.tsx.

  3. blacktoast commented on Feb 4, 2023

    @blacktoast
    Contributor

    Thank you

  4. added a commit that references this issue on Feb 7, 2023
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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions