WebViewer 8.3.1: showWarningMessage - Cancel Button Missing

WebViewer Version:
8.3.1

Do you have an issue with a specific file(s)?
No
Can you reproduce using one of our samples or online demos?
yes

Are you using the WebViewer server?
No
Does the issue only happen on certain browsers?
No
Is your issue related to a front-end framework?
No, don’t think so
Is your issue related to annotations?
No

Please give a brief summary of your issue:
WebViewer 8.3.1: showWarningMessage - Cancel Button Missing

Please describe your issue and provide steps to reproduce it:

I upgrade from WebViewer 8.1.0 and the WebViewer method showWarningMessage does not show any cancel button as in version 8.1.0. Maybe the API changed but in this case, the documentation maybe outdated.

My Code:

const result = await ui.showWarningMessage({
        title: i18n["DIALOG.MODIFIED.TITLE"],
        message: i18n["DIALOG.MODIFIED.MESSAGE"],
        confirmBtnText: i18n["DIALOG.MODIFIED.DISCARD"],
        onConfirm: () => {
          resolve(true);
        },
        onCancel: () => {
          resolve(false);
        },
      });

Result: 8.3.1

image

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

I found a undocumented property secondaryBtnText with a onSecondary callback. Is this the new cancel button?

Hello uwohlfeil,

Thank you for reporting this, I currently have a fix in the works.

Best Regards,
Tyler Gordon
Web Development Support Engineer
PDFTron