stopping buttons in dialog from submitting it to server-side

This commit is contained in:
ralf
2022-10-06 13:55:24 +02:00
parent c5b8261ec2
commit 196024a454
2 changed files with 6 additions and 10 deletions

View File

@ -180,7 +180,7 @@ export const ButtonMixin = <T extends Constructor>(superclass : T) => class exte
_handleClick(event : MouseEvent) : boolean
{
// ignore click on readonly button
if(this.disabled || this.readonly)
if(this.disabled || this.readonly || event.defaultPrevented)
{
event.preventDefault();
event.stopImmediatePropagation();