Created by: jamesmosier
Fixes #17584 (closed).
For the v4 docs:
Added JS event handler & logic for event.relatedTarget
for varying content modals based on the trigger button.
Now all 3 examples within the Varying modal content based on trigger button section of modals with work properly according to the supporting documentation code example.
For reference, the current section looks like this