May the action inside of AP.flag be as a link with a custom href or simple button?

https://developer.atlassian.com/cloud/jira/software/jsapi/flag/
According to above docs we have ability to call flag component from our app by AP.flag.create(). If we put actions inside this block, it will be <a href=“#”… In our app we use a only if we are sure if we can open it in new tab by context menu or ctrl+mouse click.

I’d like to you change tag from a to button, or add opportunity to add custom url for actions inside of flag