bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

We're unable to find out if a form is pristine when input elements are inside of tabs

Open RichardAlan opened this issue 13 years ago • 1 comments

I note this was an issue opened a few days ago and then closed.

It seems like an extremely common thing for a form to contain an area with tabs and for each tab to have inputs. If this is done then I cannot see how it is possible to find out if the form is dirty or pristine from outside of the tabs.

`

Pristine: {{ itemForm.$pristine }}



Pristine: {{ itemForm.$pristine }}
`

Here's a plunker opened by one of our group members:

http://plnkr.co/edit/uuoEz9BtkmOe1TIBO3K0?p=preview

This is a big problem for us now as our forms have submit buttons that are enabled if the form is not pristine. However the submit button doesn't know if any changes have been made inside the tabs. We're almost at the point of saying we cannot use the bootstrap tab directives because of this :-(

RichardAlan avatar Jul 10 '13 22:07 RichardAlan

It was fixed in the master already: http://plnkr.co/edit/IRmD7g8mLVSgRQt9Bx89?p=preview

This fix will be part of the next release.

pkozlowski-opensource avatar Jul 11 '13 06:07 pkozlowski-opensource