In latest WordPress if web page has
<input type="hidden" name="action" value="action_name"> input field with name=action then it create console log error. But this happen maybe 4.9.5/6.
However. if page has form or just
<form></form> tag before that input field (name=action) then console error not generate.
admin_post_(action) require to used field with
name="action" and when use this field with certain name value this error generate infinitely on only console error
Uncaught TypeError: e.action.indexOf is not a function.
Is it a WordPress bug or is there anyway I can avoid this error.
Currently I avoiding this error using extra form before it.