Skip to content
This repository has been archived by the owner on May 5, 2018. It is now read-only.

Select2 form field is always dirty #268

Closed
ghost opened this issue Nov 20, 2012 · 5 comments
Closed

Select2 form field is always dirty #268

ghost opened this issue Nov 20, 2012 · 5 comments
Milestone

Comments

@ghost
Copy link

ghost commented Nov 20, 2012

Upon creating Select2 element is always dirty, even if no changes were done.

This happens because we trigger 'change' event for the element.

@ProLoser
Copy link
Member

ProLoser commented Dec 8, 2012

If you create a demo I may be able to tackle this one.

@ProLoser
Copy link
Member

ProLoser commented Dec 8, 2012

I'm thinking we can do something like ngModel.$pristine = true right after this line but I it may have to occur asynchronously.

@brettatoms
Copy link

The previous comment/reference doesn't seem like the same thing since it has to do with $dirty not being set where this is about a ui-select2 always being $dirty. It seems to be the same as this post which has a partial workaround when using but not when using (which is my problem):

https://groups.google.com/forum/?fromgroups=#!searchin/angular/select$20$24pristine/angular/WoJRSej8f7g/IC_wvt2j0m0J

@ProLoser
Copy link
Member

ProLoser commented May 3, 2013

AngularUI is currently undergoing a restructure. This project will no longer hold the codebase, can you please relocate this to https://github.com/angular-ui/ui-select2 (after confirming it's still necessary with the latest code)?

@nateabele
Copy link

This repo is discontinued. The project has been relocated here: https://github.com/angular-ui/ui-select2

Please reopen this issue there if it is still relevant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants