Open zkbule opened 2 years ago
It is possible to work around it using host service:
const service = await SDK.getService<IHostPageLayoutService>(CommonServiceIds.HostPageLayoutService);
service.openMessageDialog(message, {
title,
showCancel: true,
onClose: (result) => (result ? alert("OK") : alert("Cancel"),
});
using azure-devops-extension-sdk 2.0.11, this is the code:
this.messagesService.addDialog({ message: "New Corner Dialog", title: "Dialog Title" buttonProps: [{ primary: true, text: "Accept", onClick: () => {alert("onClick")} }] });
when click the button, the onClick does not response which cause whole page hang