angular-selectize icon indicating copy to clipboard operation
angular-selectize copied to clipboard

Angular sees untouched selectize as dirty

Open geemang2000 opened this issue 9 years ago • 0 comments

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
            };

geemang2000 avatar Mar 14 '15 16:03 geemang2000