Also, I'd like to be able to have both an href and an event for the same header action, so can the logic please be updated so that the event is triggered even if the href option is set? And the callback option too as I can imagine using that together with an href.
If there's some existing core event listener that's getting triggered by the click when it shouldn't be, it would be better to update that listener to exclude the case according to the event target. E.g. at line 2696:
Short description of the issue
I'm adding an inputfield header action:
Clicking on the header action icon causes this JS error in the browser console:
I think line 1333 is perhaps supposed to be:
Also, I'd like to be able to have both an
href
and anevent
for the same header action, so can the logic please be updated so that the event is triggered even if thehref
option is set? And thecallback
option too as I can imagine using that together with an href.Lastly, please don't use return false in event listeners as this prevents other JS code from listening to the same event. Discussed here: https://github.com/processwire/processwire-issues/issues/1028
If there's some existing core event listener that's getting triggered by the click when it shouldn't be, it would be better to update that listener to exclude the case according to the event target. E.g. at line 2696: