You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to submit a form from a modal and the form is submitted through ajax. once the form is submitted some response is returned that regenerate the choices with the new values.
This happens when an new Choices instance is applied to an element which was previously had choices initialized on it. The previous Choices instance should be destroyed or reused, otherwise the new Choices instance will be in a broken state.
A better error message will be generated as part of v11.0.0
…w an error the Choices instance was not initialized or multiple choices instances where initialized on the same element. Prevents bad internal states from triggering unexpected errors #1129
I am trying to submit a form from a modal and the form is submitted through ajax. once the form is submitted some response is returned that regenerate the choices with the new values.
Laravel Blade Template Initial Render (Works Fine):
{{ Form::select('member_id',$members, null, ['class' => 'form-control choices','searchEnabled'=>'true', 'placeholder' => __('Select a Member')]) }}
Js Code to Target The Choices Instance:
Error: Cannot read properties of undefined (reading 'removeLoadingState')
Any help??
The text was updated successfully, but these errors were encountered: