Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Cascaded options removed when using hideExpressions #746

Open
lexhartman opened this issue Aug 28, 2017 · 4 comments
Open

Cascaded options removed when using hideExpressions #746

lexhartman opened this issue Aug 28, 2017 · 4 comments
Assignees
Labels

Comments

@lexhartman
Copy link

lexhartman commented Aug 28, 2017

I am using Angular-Formly and i am using the example for the Cascaded-select on the website of Angular-Formly: http://angular-formly.com/#/example/other/cascaded-select

When hideExpression is used on 3rd field, the options in these fields (cascaded with the 2nd field) are removed. The only thing that's changed is that hideExpression is added on the 3rd field.
Also, when the 1st and 2nd field are changed a few times, all the options are available in the 3rd field.

I also put this question on StackOverflow (https://stackoverflow.com/questions/45917938/angular-formly-cascaded-options-removed-when-using-hideexpressions?noredirect=1#comment78794372_45917938).

http://jsbin.com/huwohewoli/

@egucciar
Copy link

Were you able to make progress on this?

@egucciar egucciar self-assigned this Sep 20, 2017
@lexhartman
Copy link
Author

Unfortunately no. I put it aside for the time being while i'm focussing on other things in my 'project'.

@egucciar
Copy link

Since I might need this functionality as well, I'll keep this in mind and look for potential solutions

@egucciar egucciar added the bug label Sep 20, 2017
@lexhartman
Copy link
Author

I found a solution, but it's totally different approach but maybe you can use it for your own:
http://plnkr.co/edit/3HWxKCswZVtvbV0Ucr6r?p=preview
(works only with the options 'function' and 'department')

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

No branches or pull requests

2 participants