material-components / material-components/material-components-android

[ExposedDropdownMenu] Selecting an empty unfocused dropdown menu moves the view to the bottom when inside a NestedScrollView

Open
#2,311 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Widget: TextField
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:** Selecting an empty unfocused dropdown menu moves the view to the bottom when inside a NestedScrollView. The exposed dropdown menu is in a ViewHolder inside a RecyclerView, which is inside a NestedScrollView.

**Expected behavior:** The view's position stay as is.

**Source code:**

```


```

**Android API version:** 30

**Material Library version:** 1.4.0

**Device:** Samsung Galaxy S20+, Samsung Galaxy Tab S7

https://user-images.githubusercontent.com/19756326/126602038-d7fdf021-7277-4931-9393-f10b9f21e322.mp4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with the provided TextInputLayout and MaterialAutoCompleteTextView layout inside a ViewHolder, RecyclerView, and NestedScrollView on the reported Android setup. Compare the empty, unfocused selection with the expected unchanged view position; done means the view no longer moves to the bottom.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.