angular-selectize
angular-selectize copied to clipboard
Angular sees untouched selectize as dirty
I'm attempting to do some $dirty logic on my form. It looks like angular is marking the selectize as dirty even though I've not interacted with it yet.
Here is the output from my page after a fresh page load.
<selectize value="WEB_APP" style="display: none;" tabindex="-1" class="ng-untouched ng-valid ng-isolate-scope selectized ng-dirty ng-valid-parse ng-valid-required" config="appTypeConfig" ng-model="app.settings.type"></selectize>
Here is the config from my controller. The LookupService returns a JSON array of text, value pairs.
$scope.appTypeConfig = {
options: LookupService.getWithKey('app_types_en_US'),
maxItems: 1,
highlight: false
};