-
Notifications
You must be signed in to change notification settings - Fork 648
has-feedback not being applied on conditional elements using default decorator (ngAnimate) #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As described in the ngAnimate issue thread, the bug comes when there are more than 1 interpolated values in the class attribute. I have monkey patched a rather ugly fix, but it works... dist/decorators.js::6 to: src/directives/decorators/bootstrap/default.html
|
@plong0 and posterity: To solve this bug you can "reload" the template on runtime via the angular.config() method:
It seems to be solving the base problem so you can use the original template form schema-from without any code adaptation. In my case, I will copy the template file in app directory to keep it in the build scope. Update: I just found out that this fix is only working as long you not push new elements to the DOM. Therefore I suggest the same pressure but including the patch from @plong0. |
Why is this not closed? @davidlgj |
@rnjailamba it is closed, what do you mean? |
@Anthropic i meant that the pull request is not merged - json-schema-form/angular-schema-form-bootstrap#13 |
@rnjailamba it will get merged when someone has time to look at it, we are rewriting the core of the framework so it is hard to deal with PR just at the moment. But it will happen in the next few weeks I hope. |
Seems that the problem is the multiple interpolation. |
@dorin-niscu what a coincidence, I changed it in my local build eight hours ago to: |
@Anthropic Hehe yes :) |
Any news? |
@cividinidavide this should be working fine in the alpha version, if you are waiting on stable it wont be too much longer. |
I have discovered a rather specific bug when using angular-animate alongside angular-schema-form. The bug appears to come from ngAnimate, but thought I would share here in case anyone else encounters it with their asf forms.
The case is this:
a form item using default decorator, with a condition is not receiving the has-feedback class
The most obvious effect of this is that the feedback icons for those elements are appearing in the top right corner of the page rather than on the input.
The ngAnimate bug is described at angular/angular.js#9109 (comment)
The text was updated successfully, but these errors were encountered: