django-nested-admin icon indicating copy to clipboard operation
django-nested-admin copied to clipboard

With django-autocomplete-light, select2 autocomplete field reverts to select-box after inline drag-drop

Open kygoh opened this issue 4 years ago • 2 comments

After an inline drag and drop, django-autocomplete-light select2 autocomplete field will revert to select-box interface (<select>). This does not happen with django ModelAdmin.autocomplete_fields

django-autocomplete-light==3.8.2 django-nested-admin==3.4.0

Before

After drag and drop

kygoh avatar Jan 08 '22 23:01 kygoh

Further trials with autocomplete widget on:

  • Django==3.2.11
  • django-autocomplete-light==3.8.2
  • django-nested-admin==3.4.0
Action ModelAdmin.autocomplete_fields django-autocomplete-light
add first inline row widget duplicated; see https://github.com/theatlantic/django-nested-admin/issues/154#issue-481266637 no issue
drag and drop no issue widget reverts to select-box; see above

kygoh avatar Jan 09 '22 04:01 kygoh

@kygoh I also ran into this issue, I have a PR up with django-autocomplete-light to fix this. https://github.com/yourlabs/django-autocomplete-light/pull/1309

trumpet2012 avatar Sep 22 '22 21:09 trumpet2012