Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

bug(autocomplete): dropdown menu is too tall when only one result is present #7955

@robertmesserle

Description

@robertmesserle

Working on recreating the issue in a CodePen, will add more details.

HTML

<md-autocomplete
    md-autofocus="true"
    md-delay="100"
    md-selected-item="selectedItem"
    md-selected-item-change="setItem()"
    md-items="item in itemMatcher(searchText)"
    md-item-text="item.title"
    md-search-text="searchText"
    md-min-length="3"
    placeholder="Enter item name"
    md-input-id="search-box"
    md-menu-class="search-box-results"
    ng-keypress="($event.which === 13)?search(searchText):0">
  <md-item-template>
    <span md-highlight-text="searchText" md-highlight-flags="^i">
      (ID: {{item.id}}) - {{item.title}}
    </span>
  </md-item-template>
  <md-not-found>
    No matches found for "{{searchText}}".
  </md-not-found>
</md-autocomplete>

Metadata

Metadata

Assignees

Labels

P1: urgentUrgent issues that should be addressed in the next minor or patch release.g3: reportedThe issue was reported by an internal or external product team.type: bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions