- last update
over 1 year ago 28,508 pass, 11 fail - Status changed to Needs review
about 1 year ago 11:07pm 27 September 2023 - last update
about 1 year ago 29,634 pass, 5 fail - πΊπΈUnited States agarzola
Providing a new patch for 10.1.x that uses
MutationObserver
, sinceMutationEvent
is deprecated. The last submitted patch, 19: 2997668-19-d10.1.x.patch, failed testing. View results β
- Status changed to Needs work
about 1 year ago 1:00pm 28 September 2023 - π«π·France yfiervil
One solution is to manage this directly where the DOM is updated.
For exemple on Vue, you can just force the bind with :onMounted(() => { Drupal.ajax.bindAjaxLinks() })
Did the core really need to manage this case ?
- πΊπΈUnited States agarzola
Did the core really need to manage this case ?
Since loading content dynamically via Ajax is functionality offered by core and it is a reasonable expectation for dynamically-loaded content to itself contain dynamic links within, then it stands to reason that core should handle that use case.
- π·πΊRussia a.kovrigin Penza
I'm facing an issue when observer does nothing when no DOM changes happens on page load.
Usage of
MutationObserver
is a great option here, but shouldn'tbindAjaxLinks()
be called anyway, so we'll have processed.use-ajax
links at the page loaded stage and on DOM mutation level?