Replies: 2 comments 1 reply
-
I believe you will need to add an accept list for the additional 'sanitized' attributes in the
I don't believe this is very well documented. |
Beta Was this translation helpful? Give feedback.
-
With respect to the removal of the '[]' for the attribute, I beleive FormIO uses DOMPurify to do the sanitize: https://github.com/cure53/DOMPurify. There maybe something in that config you can use to preserve the brackets. However, my guess is that you are running into the same issue as we did, however we are using AngularJS. I will prefix the rest of this comment mentioning that I believe there is an Angular wrapper for FormIO at https://github.com/formio/angular, though I am not sure it would solve your issue. NOTE! Everything after this is with AngularJS - you will have to take that into account for Angular. We didn't use the old FormIO AngularJS wrapper, and had to add additonal code. The problem stems from the fact that FormIO is creating the HTML elements without the involvement of AngularJS, thus there is no AngularJS binding. We solved this as follows:
where:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to integrate ngx-bootstrap Typeahead into custom component with custom template but Form Renderer always remove [typeahead] directive.
Custom component at https://help.form.io/developers/custom-components#component-methods
My code
<input [typeahead]="states" class="form-control">
FormIO Rendered
<input class="form-control">
It would be of great help if you could advise me what to do with this.
Beta Was this translation helpful? Give feedback.
All reactions