4

I am using angular ui-select directive and trying to disable it with ng-disabled option.

<ui-select multiple ng-model="address.selected"
             theme="bootstrap"
             ng-disabled="true"
             reset-search-input="true"
             style="width: 300px;">

Here is the plunker http://plnkr.co/edit/julETCG4zCGAxFJ0PSBF?p=preview

Size of the text box shrinks with ng-disabled="true".

Blazemonger
  • 90,923
  • 26
  • 142
  • 180
swe
  • 143
  • 3
  • 11

1 Answers1

4

Update theme from bootstrap to select2 as shown below:

<ui-select multiple ng-model="address.selected"
         theme="select2"
         ng-disabled="true"
         reset-search-input="true"
         style="width: 300px;">

If you want bootstrap theme then add this to style instead:

.ui-select-multiple.ui-select-bootstrap {
    min-height: 34px;        
    height: auto;
    padding: .3em;
}

as shown here.

dmahapatro
  • 49,365
  • 7
  • 88
  • 117