Refreshing turbo frames with image maps

It doesn’t look like it’s currently possible to use an image map within a turbo frame and have the frame reload - the code appears to search for an anchor element.

Is it possible this could be supported, or are there any workarounds for this?

I think I’d create a stimulus controller, I’d catch the click event and prematurely return unless it’s an area element, and then manually issue a Turbo.visit(target.href) or Turbo.visit(target.href, { frame: frame }) (handbook reference) depending on whether it’s target="_blank" or not on the area element.

Let me know if you’d like an example Stimulus controller and the html for it.