Closing a CRUD operation #517
-
On my app i've added a Company Selector on Sidebar bottom area using https://cdnjs.com/libraries/select2/4.1.0-rc.0 Everything works fine but if I change company when a CRUD operation is open it gives me this error: 404 Any idea how to avoid this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@blondie63 is your sidebar company selector inside a form element itself ? Are you submitting it with ajax or directing the user to the URL ?From the error it seems you are submitting the crud form and not the selector change one. Cheers |
Beta Was this translation helpful? Give feedback.
-
Hi @pxpm , thanks for your reply ! This my controller:
And this is my sidebar:
What you think ? |
Beta Was this translation helpful? Give feedback.
-
Due to no activity, I will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
This is the culprit for the reported issue with other select2 on page.
You can't target the select2 using the
.select2
class that's used by all other select2.You can add another class
.company-selector
and use it to create the select2.Cheers