-
-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Autocomplete trigger not clearing when adding a chip in paper-chips with autocomplete #932
Comments
The change in question is 5f264a2, which doesn't explain why the change was made. @xomaczar, do you recall why the I've confirmed that removing the |
Further testing shows that I've had a bit of a play around to try to make it work without |
@pauln please confirm these changes address your use cases: https://github.com/xomaczar/ember-paper/tree/fix/make-autocomplete-data-down-action-up Also, paper-chips component was updated to use this "fixed" autocomplete See the dummy app |
@miguelcobain @pauln I would love to remove _innerText craziness, as it violates DDAU principle and causes issues for other components that depend on paper-autocomplete. Thoughts? |
Your I've just submitted a PR to your branch which completely cleans out (unless I missed anything) the |
Does anything else need to be done before your branch is ready to submit a PR to this repo, @xomaczar? If so, is there anything I can do to help move it along? |
@pauln - sorry I haven’t had a chance to button it up. Here are the things I’d like to add/fix before making a PR.
|
Personally, I'd think that use of Requiring (via an Any thoughts on all of this, @miguelcobain? |
readonly helper is kind of advanced and in general discourage by ember core team (as glimmer components are/will be readonly/one-way by default). I think what we have should just work as is. |
@pauln can we close this |
Some time between
v1.0.0-beta.4
andv1.0.0-beta.7
,paper-autocomplete
has changed in such a way that the workaround used bypaper-chips
(with autocomplete) is no longer able to clear the trigger value (search text). To be more precise, it does actually reset - but the autocomplete then immediately switches to populating the trigger with a cached value (_innerText
), so the user has to manually remove the search text before they can search for another item.The text was updated successfully, but these errors were encountered: