-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'search_terms' in POST data #1049
Comments
This was particularly frustrating as the name of my input was previously 'search_terms', so was being overridden. Re-naming fixes it, but still the unwanted post data is there. |
I have an issue with search_terms naming too, but with GET. I tried to completely remove the name attribute from the compiled choice.js input, and this way the query string is obviously correct. Any considerations about this matter? |
Did anybody find a solution about this? |
Sorry to bother again but I would like to know if this could be fixed somehow (I could make a pull request but I would like to discuss which is the best way to solve it without breaking anything). |
I got the same issue. It looks like a regression since release 10. Downgrading to 9.1.0 fix the issue for me. |
Also having this issue. For php name can be set to empty string and will be ignored:
Not very helpful if you already have one on the page though, config to disable this would be nice. |
Up please |
up |
Fwiw, this caused all sorts of problems on a few sites of mine after updating. It took me quite a while to figure out where this new |
As another option: callbackOnInit: function () {
this.input.element.name = ''
} |
Definitely a +1 in terms of this being purged from the form data, or at least made optional. It also breaks if there's multiple Choices.js instances active within the same form, as they each use |
…tted when it shouldn't be Resolve Choices-js#1049
Describe the bug
When choices.js is used in the form, it submits also data for
search_terms
.To Reproduce
Steps to reproduce the behavior:
search_terms
in the post dataExpected behavior
No "search_terms" value got to the form.
The text was updated successfully, but these errors were encountered: