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) => {
|
$(document).on('formset:added', (event, $row, formsetName) => {
|
||||||
if (event.detail.formsetName) {
|
if (event.detail && event.detail.formsetName) {
|
||||||
// Django >= 4.1
|
// Django >= 4.1
|
||||||
handleFormsetAdded(event.target, event.detail.formsetName)
|
handleFormsetAdded(event.target, event.detail.formsetName)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue