elo80ka / django-dynamic-formset

A jQuery plugin that allows you dynamically add new forms to a rendered django formset.
677 stars 311 forks source link

Error when using jQuery 3 #162

Open cpina opened 4 years ago

cpina commented 4 years ago

When using jQuery 3.4.1 and django-dynamic-formset (latest version) and django-autocomplete-light and clicking on "add row" it doesn't work (there is an extra field, etc.).

The Javascript errors on interacting are:

TypeError: self.dataAdapter is null TypeError: this.dataAdapter is null

If I revert to use jQuery 2.1.3 then it works fine.

I haven't investigated more. Does anyone know of a fix? I'm not very familiar on jQuery (more a backend person here).

Thanks!

Carles

pique-b commented 2 years ago

May be you can give jQuery autocomplete a try (instead of using Django autocomplete light) here.

Works with django-dynamic-formset.