Apple Pay on website

Sometimes when we load the Apple sheet for the first time, the onshippingcontactselected is not called at all, although there is a default address selected, when we try again it works.

In some cases as well the Apple sheet freezes, all the buttons become un clickable. There are no errors.

I'm testing on Mac version 11.5.2.

please see the attached the code.

Apple Pay on website
 
 
Q