mirror of
https://github.com/django/django.git
synced 2025-02-01 21:29:24 +00:00
Refs #33328 -- Corrected JS check for event.detail presence in docs.
This commit is contained in:
parent
8e89dfe1c2
commit
fe7cb34544
@ -68,7 +68,7 @@ to the old listener signature as follows:
|
||||
}
|
||||
|
||||
$(document).on('formset:added', (event, $row, formsetName) => {
|
||||
if (event.detail.formsetName) {
|
||||
if (event.detail && event.detail.formsetName) {
|
||||
// Django >= 4.1
|
||||
handleFormsetAdded(event.target, event.detail.formsetName)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user