Blacklight 8 uses an HTML Dialog element instead of a Bootstrap modal, so it won't fire the 'shown.bs.modal' events when opened. This adds a MutationObserver to check if the 'open' attribute is added to the HTML Dialog element, to determine if it's open. It also adds a function that can be called to add 'turbo:load' event handlers for those that want to support re-/rendering after Turbo navigation.
Blacklight 8 uses an HTML Dialog element instead of a Bootstrap modal, so it won't fire the 'shown.bs.modal' events when opened. This adds a MutationObserver to check if the 'open' attribute is added to the HTML Dialog element, to determine if it's open. It also adds a function that can be called to add 'turbo:load' event handlers for those that want to support re-/rendering after Turbo navigation.