mirror of https://github.com/django/django.git
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…
Reference in New Issue