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.

md-search-text-change in md-autocomplete doesn't work when delete select text #2061

@caok2709

Description

@caok2709

Hello guys!
I think I found a bug for md-search-test-change.
This directive can't detect search text is empty if user do this :

If user first type: "abc", the md-search-text-change do will be called. There is no problem.
However, if the user firstly input a word "abc" in the input box and then delete them together or just press delete on the keyboard ,the md-search-text-change won't get a chance to call.....
Which means: there is no way to determine if the search text is empty or not.

I know there is a button at the end for input box. If we press that clean button, the search text will gone. and the model bind to md-selected-item will gone....
Question is: you can't force user to press that button to clean the selectItem model ...

Anyone know , how to tell if the search text is empty when user clean them by the way I gave?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions