-
Notifications
You must be signed in to change notification settings - Fork 27
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
loosing borders in selectize widget after pressing button "Reset to initial" in bootstrap mode #122
Comments
I am also seeing an error when doing this. The SelectizeMultiple widget becomes inactive after clicking the Reset button. The console prints "Bad Request: my_url_path". The problem appears to be in formset/collection.py - django-formset/formset/collection.py Line 490 in 0ec7695
The field_path value is in the format: So the The collection/form nesting looks like this (from top to bottom): |
Thanks for reporting. I'll have a look at this. |
@amikphoto I just tested on the demo page. What I see here, after clicking "Reset to initial" the field named "Static Opinion" forgets about all its options. However, I do not see the field losing its borders. How can I reproduce this? |
I now fixed the problem with Reset on the Selectize widget with "Static Opinion". However, I am not able to reproduce the field losing its borders. |
Thank you very much for your work! |
This was the missing information. Now I am able to reproduce this myself. |
|
I just pushed a working solution. I have to fix some unit tests before releasing a new version. |
Thank you very much! |
Still have the problem with new release 1.3.9. It happened when I use selectize widget and when I use active search in the widget and it tries to get answer from backend to get new list of options. The problem appears in: class FormCollection(BaseFormCollection, metaclass=FormCollectionMeta): self.declared_holders[key].get_field(path) return KeyError:'0' |
I've a form with selectize widget (foreing key). When the form is opened I press on "Reset to initial" button this fiels loosing border and style. Is it bug?
The text was updated successfully, but these errors were encountered: