Skip to content

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

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

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:
#590

(props to elbunuelo)

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

@Anthropic
Copy link
Member

Anthropic commented Apr 23, 2017

@nicklasb can you check this one out? The examples are both the same minus the use of your plugin for the first fo the two selects, can you shed some light on the problem, has this been reported to you in your github issues?

FYI I tried with the latest alphas as well and seems to have same issue.

@nicklasb
Copy link
Member

@Anthropic
Hi, have to get back on this next week but had a quick look not and I think that this is the one:
OptimalBPM/angular-schema-form-dynamic-select#63
And it also links to:
json-schema-form/angular-schema-form-bootstrap#9

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

4 participants