formio / angular

JSON powered forms for Angular
https://formio.github.io/angular-demo
MIT License
646 stars 472 forks source link

Cannot read property 'removeLoadingState' of undefined [BUG] #402

Closed nawazsktekopt closed 5 years ago

nawazsktekopt commented 5 years ago

choicesJs

So when i try to initialize dropDown by using choicesJs widget this issue arose. There is no issue with HTML5 widget. Please provide a way for Initialization

Thank you

travist commented 5 years ago

Please provide a JSFiddle showing the problem so that we can investigate.

nawazsktekopt commented 5 years ago

I am really sorry. The issue was because i was getting values to bind in form first & then initializing the form. This is what caused the error. Sorry for inconvenience. Thank you

kamel-msaoubi commented 4 years ago

Hello @nawazsktekopt I have the same error. Please, can you describe your solution ? It will really save my day.

Thanks in advance,

Alexa-Green commented 2 years ago

@nawazsktekopt @kamel-msaoubi This is happening to me as well-- what ended up fixing it?

Benzer1406 commented 2 years ago

Same issue happening here. I propose reopening.

nawaz7777 commented 2 years ago

I have fixed it long back then. But forgot to post the resolution. I will try to remember. Till then check with the initialization of formio. That element is already initialized even before formio choices are called. Try to check with importing formio sequence in modules sequence. Like importing formio module after initializing all modules (if angular). Check how the formio module is imported. Imported at the last.

Alexa-Green commented 2 years ago

@nawaz7777 Thank you-- seems to be a few issues happening due to rendering/initialization that tend to be fixed with a manual rerender of form.io-- would be ideal if form.io waits to be fully initialized or could rerender itself on these bugs