formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.22k stars 405 forks source link

Cascaded options removed when using hideExpressions #746

Open lexhartman opened 7 years ago

lexhartman commented 7 years ago

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 commented 7 years ago

Were you able to make progress on this?

lexhartman commented 7 years ago

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

egucciar commented 7 years ago

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

lexhartman commented 7 years ago

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')