Fixed motion form to save form with default text (Fixes #2069).

Use workaround: Added 'novalidate' to motion form. Otherwise user
can't save form if text editor field contains default value.
This commit is contained in:
Emanuel Schuetze 2016-09-17 15:41:49 +02:00
parent 4b0594a83b
commit d1458dcca1

View File

@ -6,7 +6,7 @@
{{ alert.msg }} {{ alert.msg }}
</uib-alert> </uib-alert>
<form name="motionForm" ng-submit="save(model)"> <form name="motionForm" ng-submit="save(model)" novalidate>
<formly-form model="model" fields="formFields"> <formly-form model="model" fields="formFields">
<button type="submit" ng-disabled="motionForm.$invalid" class="btn btn-primary" translate> <button type="submit" ng-disabled="motionForm.$invalid" class="btn btn-primary" translate>
Save Save