django-better-admin-arrayfield
django-better-admin-arrayfield copied to clipboard
Patch js script
According to documentation we can change 'subwidget_form' to any build in or custom widget. This option doesn't work because line 29-32 in querySelector hardcore looking for input field, and don't have any protection in case when it doesn't find it, so script throws error when it's trying getAttribute('id) on undefined variable in case when we're using textarea.
I change this to finding tag of first element (select, input , textarea) and then using it to next calls.
and i updated min. version.
(i made it because it doesn't work with textarea because of this script)