I tried to put # places of the url, but the url still works and e.stopImmediatePropagation ()
with js also didn't help. Is there any way to do this through xml or otherwise? Thanks
<item name="buttons" xsi:type="array">
<item name="alert_text" xsi:type="array">
<item name="name" xsi:type="string">alert_text</item>
<item name="label" xsi:type="string" translate="true">Custom Button</item>
<item name="class" xsi:type="string">primary</item>
<item name="url" xsi:type="string">*/*/url</item>
</item>
</item>