mlavin / django-selectable

Tools and widgets for using/creating auto-complete selection widgets using Django and jQuery UI.
http://django-selectable.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
129 stars 64 forks source link

Selectable doesn't work on newly added rows. #205

Open pod2metra opened 5 years ago

pod2metra commented 5 years ago

I'm using grappelli and nested inlines, newly added inline row don't do anything while typing, but if this inline has already been saved, then on reload this page all completions will work correctly.

    $(document).on('formset:added', function(event, $row, formsetName){
      window.bindSelectables($row);
    });

I try to handle add new line via this snippet, but window.bindSelectables does nothing.