Since the locker service is activated, I cannot access to the HTML select tag.
I want to dynamically change the options in the select tag.
Below the code sample of the component:
<div class="slds-form-element__control">
<select id="picklistSelectBox" class="slds-select" disabled="{!v.disabled}">
<aura:iteration items="{!v.values}" var="val">
<option value="{!val.value}">{!val.label}</option>
</aura:iteration>
</select>
</div>
Below the code sample of the helper:
var selectBox = $('#picklistSelectBox');
or
var selectBox = document.getElementById('picklistSelectBox');
This returns an empty object with no property, and I am not able to get/set values in the select with $('#picklistSelectBox').val(...) instruction.
I know with the LS activated, the access of DOM that I do not own is forbidden. But here, there is no namespace for the HTML select tag.
This worked fine when LS is not activated.
How can I do that with LS activated? Is there something that I'm missing ?
Many thanks for the help!
EDIT : Behind I use the select2.js jQuery library
Regards
Julien