Comments (9)
Have you added "register-custom-form-control" to your custom field? HTML elements are added to a HTML form controller, but custom elements are not. Angular auto validate uses the HTML form controller to decide what it should validate. Adding "register-custom-form-control" makes angular auto validate aware of your custom element.
Let me know if that works for you. :)
from angular-auto-validate.
Thank you, but it will not work for me ((
The module validates timepicker(shows errors or success), that's why no need to use the "register-custom-form-control".
In my case the problem is, that default bs3 element modifier adds "has-success has-feedback" style classes, which corrupts view (I still want to use default "has-success has-feedback" for other html elements like input, select etc). That's why I decided to create custom element modifier, where I removed only "has-success has-feedback" style classes in makeValid.
from angular-auto-validate.
Ok, so to clarify; The default element modifier corrupts the view. To get around that you have created a custom element modifier. You wish to apply this to only your timepicker with element-modifier, but that does not work (as in it does not register as the time modifier for that element)?
Personally never used it with a timepicker. I'll try to take a peek at it later tonight or tomorrow/tomorrow night.
from angular-auto-validate.
It must be something to do with the root element of the custom control @mgsstms could you do a reproducing plunker so I can debug it.
from angular-auto-validate.
I got the problem to reproduce this on plunker (shame on mr ((). I prepared the archive with 3 index files: https://www.dropbox.com/s/yvduzitcmem2mk5/_test.zip?dl=0
from angular-auto-validate.
Thanks for this!!! I'm on holiday until next Wednesday so I afraid I won't be able to look at it properly until then as I only have my tablet with me. Sorry for the inconvenience!
from angular-auto-validate.
Jon, thank you
from angular-auto-validate.
@mgsstms were you able to solve it?
from angular-auto-validate.
I updated template for timepicker template ('form-group' class has been removed for 'meridian' button)
from angular-auto-validate.
Related Issues (20)
- package.json has incorrect main attribute HOT 3
- angular-auto-validate with bower
- Is there any way to display more than one error message?
- Validation not working with material md-select
- After submit data remoove styling HOT 1
- Update npm registry HOT 3
- conflict with sb-admin admin template HOT 2
- Failed when using an angular expression in ng-pattern
- min and max error description wrong i18n es-co
- Prevent validating ng-hide elements
- Value {0} replace dont work when use myCustomErrorMessageResolver HOT 1
- Passing a parameter from a Custom Validator directive to errorMessages doesn't work unless you make errorMessages dash-case. HOT 1
- cannot validate ng-form or sections in a form
- Show server side errors using this package
- Validate when state redirection
- custom error message (help)
- auto validate for other plugins
- autovalidate intefering with ngRequired directive
- request/potential bug: allow validation when on $touched instead of on $dirty HOT 1
- Can we use this for Angular5 HOT 4
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 angular-auto-validate.