I have tried several methods already but this still wont work. It defaults to the first option in the list.
currently, here's what I have
<ui:inputSelect class="slds-input slds-text-align-center" value="{! taskRec.status}">
<aura:iteration items="{! v.status }" var="status" >
<ui:inputSelectOption text="{! status }"/>
</aura:iteration>
</ui:inputSelect>
taskRec.status – is being iterated as well. i displayed this in plain text and it returns the proper value
I just really need to set the same in the select option
Best Answer
From the documentation of the ui:inputSelectOption:
Then, you can use: