#33328: Use native JS events to trigger 'formset:added'/'formset:removed'
------------------------------------------------+------------------------
Reporter: Claude Paroz | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
The 'formset:added'/'formset:removed' events trigger in admin inlines.js
are currently using jQuery trigger functionality, hence the events can not
be catched by pure JS code.
I suggest to trigger those events with native JS events instead, so custom
libs are not forced to use jQuery to catch those events. We've also been
blocked by this on #30049.
However, the difference in passing complementary event data might make
this move backwards incompatible. I'm not sure there is a clean migration
path.
--
Ticket URL: <https://code.djangoproject.com/ticket/33328>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.82b42c1737a892e8b472e151997ee1df%40djangoproject.com.