I'm struggling once again with simple lightning component behaviour. This time with the ui:inputSelect
component.
I load the list dynamically like here below:
<ui:inputSelect label="Expense Sub-Type" aura:id="ExpenseSubType__c" class="slds-m-bottom--medium">
<ui:inputSelectOption text="" label=""/>
<aura:iteration var="subType" items="{!v.expenseSubtypes}">
<ui:inputSelectOption text="{!subType}" label="{!subType}"/>
</aura:iteration>
</ui:inputSelect>
Then when a user clicks a button, I set the value dynamically like this:
component.find('ExpenseSubType__c').set('v.value', 'Taxi');
This does not work. Sometimes it works when I click on it twice.
This is working fine with other components like text input fields, or text area, but not for the select.
Is this another bug in the lightning framework or am I missing something?