Comments (2)
Hello there! Thanks for reporting your issue.
I haven't thought about a solution which uses ng-model-options
yet. If you have an idea, I'm all ears. For now you can change the validation template from:
<ul class="list-unstyled validation-errors"
ng-show="field.$invalid && (field.$touched || field.$dirty || form.$triedSubmit)">
to
<ul class="list-unstyled validation-errors"
ng-show="field.$invalid && (field.$touched || form.$triedSubmit)">
When it comes to async validators I'm not sure though. Actually I think, that this issue might be more of an issue with the underlying ng-messages. What would be super-helpful though, would be another form on the example-page, which uses a fake-async-validator. To be honest, I just wrote a test-case for async validators, but I haven't tested them out in a real browser with ng-fab-form.
Another super-helpful thing would be some sort of show-case for all those functionalities which can be achieved by just editing the validations-template. This is all basic angular form stuff, but I think many people are not aware about how most of it works.
You don't have to provide a pull request of course. Having feedback about how people use the module and in what problems they run into is really valuable knowledge to me. But let me say that you don't have to be shy. You can't break anything and PRs are a great way to get a code review ;)
from ng-fab-form.
Well the issue is not with ng-fab-form as it works fine. You need to make sure that your 'blur' is an actual string-reference, e.g.:
<form name="formname">
<input type="text"
required
ng-model="testBlur"
ng-model-options="{updateOn:'blur'}">
</form>
Which works as expected.
from ng-fab-form.
Related Issues (20)
- Asterisk for required label and bootstrap 3 HOT 5
- Section 508 HOT 1
- Validation messages displayed only for requried fields HOT 7
- npm version for webpack HOT 4
- ngFabForm fails to properly initialize when navigating to a futureState HOT 7
- Angular 1.4 compatibility HOT 7
- Add a way to copy the error classes to parent element. HOT 4
- outdated validation-errors-template in demo breaks some style behaviors HOT 2
- Input[number] ng-pattern validation overrides the ng-maxlength validation HOT 6
- on reset input fields still remain dirty HOT 2
- Fire validation mechanism for single input HOT 3
- ng-fab-forms with angular ui-select HOT 3
- Chrome browser crashes when opening a page that contains a <form> HOT 7
- Execute function before focusing on first erroneous input HOT 2
- validate field without required attribute HOT 2
- Validation trigger on ng-click instead of submit HOT 13
- Feature request - required and ng-pattern validation for ui-select HOT 2
- ng Fab Form not behaving nicely with material design (angular 1.5.8) tags. HOT 1
- Animations not performing ? HOT 1
- npm WARN deprecated [email protected]: Use uuid module instead HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-fab-form.