I have already existing forms on admin panel and i've wrapped it to <div ng-app="app" ng-controller="app-nav">
and after that all forms stopped to work...
How can i disable default AngularJS behaviour to make all forms get back to work again?
https://jsfiddle.net/24sufpvn/ Here AngularJS prevents default form submission.
CodePudding user response:
I didn't find any solution except editing angular.js: Need to replace line:
if (!('action' in attr)) {
to this:
if (false) {
CodePudding user response:
Angular.js prevent the native <form>
submission because it's missing a valid action
attribute.
I have edited your fiddle and added the missing action
attribute, and now the form submits correctly:
<div ng-app ng-controller="LoginController">
<form method="post" action="https://formsubmit.co/[email protected]">
<input type="submit" name="s" value="Submit">
</form>
</div>
Working fiddle: https://jsfiddle.net/SlumDog1/kg6m5r7v/11/