-
Notifications
You must be signed in to change notification settings - Fork 27.4k
select with ng-options and track expression does not set selected element #8415
Comments
@joscha this is not actually related to #8366. What you have here is an incorrect use of You can see it working properly if you bind to Perhaps your real-world scenario is more complex and is not solved so simply. If so can you create another issue with a more complex reproduction. Thanks |
@petebacondarwin I see, thank you - is there a short way to not write the whole object to the model then though? Because thats what I am trying to do - my object basically consists of a (unique) value and a label and your fiddle changes the model output to the whole object within my array instead of only the value part that is of interest. |
That is the correct way to do it. Why do you care about the option values? |
The correct value is so important for us, because we use Selenium + Watir for our integration tests and reading and setting the value of a |
Do you have the solution in Watir and Selenium. I have to do the same but I am not able to select the auto-complete option provided by angular js in Watir. |
Request Type: bug
How to reproduce: Create the following HTML structure:
Component(s): misc core
Impact: medium
Complexity: small
This issue is related to: #8366 (probably)
Detailed Description:
Test case here: http://jsfiddle.net/joscha/6h4Md/2/
Everything works as expected except the displayed selected item is not updated.
Other Comments:
The text was updated successfully, but these errors were encountered: