New buttons in JIRA Connect Addon dialog gets added after the cancel button

In the recent update, it looks like additional buttons created by “dialog.createButton” are being added to end of buttons list hence it shows up after the cancel button.

This sounds like a bug. Is there a way we can get the buttons to show up on the left of the cancel button. Or somehow style the button with “primary”, “secondary” or “link” classes so we can hide the original cancel button and add our own in required order.