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

not working with ng-form

Open cstephe opened this issue 11 years ago • 0 comments

The todo "refactor, temp fix for issue #22" causes an issue where ng-form is not respected.

I'm fixing it on my fork by doing something like:

   while(count < 3 
        && formElement[0].tagName !== 'FORM' 
        && !_.findWhere(_.values(formElement[0].attributes), {name:'ng-form'})) 

Sorry about the underscore but I've already had to fork to add support for custom dialogs and I brought in a ui-router on my fork as a dependency, but if this helps then thats great.

cstephe avatar Feb 04 '15 22:02 cstephe