EvanOxfeld / angular-selectize.js

Angular Selectize directive for a hybrid textbox + <select> box. Supports ngOptions and two-way bindings.
MIT License
34 stars 16 forks source link

Sync classes #27

Closed w33ble closed 7 years ago

w33ble commented 9 years ago

Keeps the $control classes synced up with the $input.

This is especially useful when using the Bootstrap 3 theme.

With this change, users can apply styles to the input on .ng-dirty.ng-invalid like this, for example:

input.ng-dirty.ng-invalid,
textarea.ng-dirty.ng-invalid,
select.ng-dirty.ng-invalid,
.selectize-input.ng-dirty.ng-invalid {
  border-color: @state-danger-bg !important;
}
w33ble commented 9 years ago

No idea why the tests are failing - the same tests fail on master too, so it's related to the changes I made...

w33ble commented 9 years ago

I figured out the test failing issue - see #28