-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight is broken with ember 1.13.X #40
Comments
Just tested this myself and it is indeed broken in 1.13.13, works fine in 2.11.0. Can I suggest not upgrading until your app hits 2.0 or is there something you need from the newer version? |
I have a new use case where I have an array of object instead and where I want to display a value in the input/suggestions but send another in the update. I first tried to use the attribute I did not try using a custom suggestion template though. I guess I'll downgrade and give it another try :) Thanks to have taken the time to test it with 1.13.13 to confirm my assumption ! |
Ok so just FYI, using
{{!-- components/suggest/suggestion/template.hbs --}}
<div>{{model.displayName}}</div>
{{!-- components/suggest/template.hbs --}}
{{aupac-typeahead display='displayName' ...}} Will fix the value shown in the input while browsing trough the suggestions The only issue left is the displayed value once a value is selected where it's still It could be fixed by passing a I guess I'll override the setValue like suggested in the issue :) |
OK, let me know how you go. The whole API around this needs to be made simpler. |
@jackmatt2 I ended up doing this:
I agree it could be made simpler, without sacrificing customization. For exemple both the suggestion template and transformSelection could use the |
Workaround as above. |
I have an application with ember
1.13.13
and using theaupac-typeahead
component without any custom templates.The suggestions are an array of string, no model, complex object or anything.
Previously with the
2.0.7
version the highlight was working fine, since I upgraded to the2.1.2
I lost the highlight.Looking at the piece of code doing the actual work in typeahead I noticed that the DocumentFragment received was only containing the ember placeholder
<!-- -->
, not the actual rendered template with the suggestion.Do you have any idea how could fix this issue ? Thanks!
The text was updated successfully, but these errors were encountered: