components icon indicating copy to clipboard operation
components copied to clipboard

mdInput inside md-option of mdAutocomplete ignores space key

Open makdeniss opened this issue 9 years ago • 3 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

An input mdInput inside a md-option with disabled attribute should have the possibility to enter text with spacing.

What is the current behavior?

An input mdInput inside a md-option with disabled attribute doesn't allow any spaces. Space key is being ignored.

What are the steps to reproduce?

<md-autocomplete #auto="mdAutocomplete">
  <md-option disabled>
    <md-icon>search</md-icon>
    {{'WELCOME_WIZARD.SEARCH_FOR_A_DEV_TEAM' | translate}}
  </md-option>
  <md-option disabled>
    <span>
      <md-form-field class="p-input-full-width p-select-adjusted">
        <input mdInput
               name="searchTerm" ngModel
               [formControl]="searchTeamCtrl"
               placeholder="{{'WELCOME_WIZARD.SEARCH_START_TYPING' | translate}}"
               aria-label="state">
      </md-form-field>
    </span>
  </md-option>
  <md-option *ngFor="let team of foundTeams | async" [value]="team.name">
    <span>{{ team.name }}</span>
  </md-option>
  <md-option disabled>
    <md-icon>star</md-icon>
    {{'WELCOME_WIZARD.INTEGRATION_PARTNER.FAVORITES' | translate}}
  </md-option>
  <md-option *ngFor="let team of filteredTeams | async" [value]="team.name">
    <span>{{ team.name }}</span>
  </md-option>
</md-autocomplete>

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular v 4.4.3, Material 2 beta 11, tested on Chrome Version 64.0.3246.0 (Official Build) canary (64-bit)

Is there anything else we should know?

makdeniss avatar Oct 24 '17 18:10 makdeniss

@makdeniss - Can you make a demo showing the issue?

amcdnl avatar Nov 06 '17 22:11 amcdnl

We haven't been able to reproduce this issue. Feel free to open a new issue if you are able to provide a reproduction via Plunker.

jelbourn avatar Jan 16 '18 23:01 jelbourn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.