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

[TextInputLayout + AutoCompleteTextView] Dialog doesn't show on click when icon is hidden

Open
#4,365 0 comments 0 reactions 1 assignee View on GitHub

@afohrman is already working on this.

Since Nov 5, 2024.

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

Description

**Description:** When you have an `AutoCompleteTextView` with `android:inputType="none"` (similar to a Spinner) and hide the end icon of the `TextInputLayout ` using `app:endIconMode="none"` then the dropdown menu doesn't show on click anymore.

**Expected behavior:** The expected behavior is to see the menu on click otherwise the view is not usable.

**Minimal sample app repro:**
```

```

**Android API version:** 34

**Material Library version:** 1.12.0

**Device:** Pixel 8 Emulator

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.