Skip to content
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

strapselect not working well inside an array with the new recommended bootstrap Decorator #10

Open
mpina83 opened this issue Nov 20, 2015 · 2 comments

Comments

@mpina83
Copy link

mpina83 commented Nov 20, 2015

I've upgraded to the recomended ASF bootstrap Decorator ( https://github.com/Textalk/angular-schema-form-bootstrap ) because of some issues working inside arrays and the destroyStrategy. Now the strapselect boxes dont render inside an array if we have more then one or dont work properly if i«ve just one(doesnt write the values in the model).

If i pick one standard select box and one strapselect the form will render but the filterTriggering stops working because it wont parse the arrayIndex value and thus the functionality of having two chained select boxes populating B values depending on select A values breaks.

Bellow i will link 2 plunker demos one working with the default ASF bootstrap decorator:

http://plnkr.co/edit/Ttxb3Icql42U8v3UrlIM?p=preview

and the last one not working with the recommended ASF bootstrap decorator:

http://plnkr.co/edit/xOlkiP7iN5vYekc7Kr8i?p=preview

ps:. you can switch the first strapselect type to just select to see the form rendering but it will still not get the triggers like it should.

It's worth to mentions was having a big problem before using select boxes nested inside array and this fix mentions here:
json-schema-form/angular-schema-form#590

(props to elbunuelo)

Solved some issues now at least with the standard ASF select box.

@Anthropic
Copy link
Member

@nicklasb have you had issues with ASFDS when using the current version of the decorator?

@Anthropic
Copy link
Member

@nicklasb nevermind I believe this is already in OptimalBPM/angular-schema-form-dynamic-select#63 isn't it @mpina83 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants