ui-select2 icon indicating copy to clipboard operation
ui-select2 copied to clipboard

Options set in template are not passed on to select2

Open ConnorStroomberg opened this issue 10 years ago • 5 comments

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

ConnorStroomberg avatar Apr 01 '14 14:04 ConnorStroomberg

Same issue here, angularjs 1.2.14

prem-prakash avatar Apr 02 '14 13:04 prem-prakash

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

eclipticevader avatar Apr 02 '14 19:04 eclipticevader

Same issue; Angular 1.2.18

kahboom avatar Jul 08 '14 12:07 kahboom

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.

dancrew32 avatar Sep 03 '14 00:09 dancrew32

thanks @dancrew32. good information

maxisam avatar Jan 27 '15 16:01 maxisam