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

mdAutocomplete: ng-disabled retains the cancel search button #1710

Closed
zlovin opened this issue Feb 27, 2015 · 4 comments
Closed

mdAutocomplete: ng-disabled retains the cancel search button #1710

zlovin opened this issue Feb 27, 2015 · 4 comments
Milestone

Comments

@zlovin
Copy link

zlovin commented Feb 27, 2015

The cancel button on md-autocomplete is still present when the autocomplete is disabled. When clicked, the search clears and no text can be entered.

Should the cancel button be hidden when the autocomplete is ng-disabed?

The demo on https://material.angularjs.org/#/demo/material.components.autocomplete demonstrates the issue.

@jwmay2012
Copy link

+1

@rhautefeuille
Copy link

Hi there,
seems like the issue is still present in 1.1.8.
Again the demo can be used to reproduce.

@Splaktar
Copy link
Member

@rhautefeuille this was changed in 1.1.5 via #10603. The description of that PR has some info that may be helpful to you:

If the developer doesn't want a clear button when the control is disabled, they can simply update their boolean expression inside of the md-clear-button attribute.

@angular angular locked as resolved and limited conversation to collaborators Apr 20, 2018
@Splaktar
Copy link
Member

I opened PR #11248 to clarify the documentation in regards to this change in 1.1.5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants