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

md-autocomplete with chips, example puts text double #3575

Closed
barryvdh opened this issue Jul 3, 2015 · 4 comments
Closed

md-autocomplete with chips, example puts text double #3575

barryvdh opened this issue Jul 3, 2015 · 4 comments
Assignees
Milestone

Comments

@barryvdh
Copy link
Contributor

barryvdh commented Jul 3, 2015

Using the HEAD on the demo for chips, when I autocomplete the first set, the text is added after the chip.

image

This wasn't the issue a few days ago with the HEAD version.

@barryvdh
Copy link
Contributor Author

barryvdh commented Jul 5, 2015

I tested the releases, the last working release from Bower is: v0.10.0-master-5fdcf90
That means the behaviour is broken in 9990e61 or 7430e68

@ThomasBurleson ThomasBurleson modified the milestone: Backlog Jul 6, 2015
@robertmesserle robertmesserle modified the milestones: 0.11.0, Backlog Jul 6, 2015
@barryvdh
Copy link
Contributor Author

barryvdh commented Jul 7, 2015

And before that release, the text was remember, so it autocompleted the previous value, without typing.

@barryvdh
Copy link
Contributor Author

barryvdh commented Jul 7, 2015

See http://codepen.io/anon/pen/EjELNJ
Adding md-selected-item-change="ctrl.selectedItemChange()" and:

self.selectedItemChange = function(){
    self.searchText = '';
}

Does fix it, so I guess that should be a relatively small fix?

@markscholtz
Copy link

I've just run into this too with v0.10.0 and it seems to be caused when setting the "md-item-text" property of the md-autocomplete. This only seems to happen when selecting an item from the dropdown list with the mouse. Selecting an item using keyboard shortcuts doesn't appear to cause the issue.

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

4 participants