Bug?: Cancel button automatically inserted into Alerts on iPad

I first noticed this about 1-2 weeks ago. Alerts on my iPad all get Cancel buttons appended to them, so in the cases where I was already adding a cancel button, there are now 2 cancel buttons.

Running the same script on my iPhone works as expected.

Bug @simonbs?

It seems to be a cancelAction as it’s not visible when presenting as sheet

This should be fixed in version 1.4.12. Can I get you to check that you have the latest version?

1 Like

Yep, 1.4.12. Here’s the simplest code that reproduces the error:

const n = new Alert();
console.log(await n.present());

This is iOS 13.5, iPad Pro 12.9” 2020.

Thanks for the sample code. I’ll make sure to get it fixed ASAP.

1 Like

Thanks! Let me know if I can help

Just wanted to let you know that I’ve submitted a fix for this issue. It should be on the App Store within a day or two.

1 Like

Amazing, thanks for the quick turnaround! I’ll confirm it works when it’s out

Confirmed fixed, thanks again!