ui-select2
ui-select2 copied to clipboard
Options set in template are not passed on to select2
An example is trying to set readonly:
<select id="itemsSelect" ui-select2="{readonly: true}" ng-model="myModel">
<option ng-repeat="item in items" value={{item.id}}>{{item.name}}</option>
</select>```
This does not currently work.
The issue appears to lie in the opts not being propagated to the select2 opts
select2 version: 3.4.5
ui-select version: 0.0.5
Same issue here, angularjs 1.2.14
Same error: Unknown method: readonly
- Causes select options to be collapsed (including width) not really sure what other information I can provide.
Edit: select2 version: 3.2 ui-select2 version: unknown
Same issue; Angular 1.2.18
Seeing this error with 1.2.19
. Doesn't seem to block plugin initialization for me.
I'm not even using readonly
anywhere. Commenting this out mutes the Unknown method: readonly
error.
thanks @dancrew32. good information