isTargetSelected is falsy in ShopPay despite option being pre-selected

This was originally posted on Github Issues in August 2024, but was recently deleted. It is still causing a problem however. https://github.com/Shopify/ui-extensions/issues/2273

Please list the package(s) involved in the issue, and include the version you are using:

"@shopify/ui-extensions": "2024.7.x",  
"@shopify/ui-extensions-react": "2024.7.x"

Describe the bug

Target is purchase.checkout.pickup-location-option-item.render-after

Code adapted from Delivery

The code works on the Shopify Checkout. But on Shop Pay isTargetSelected is falsy even though Shop Pay pre-selects the closest Pickup Option.

Steps to reproduce the behavior:

  1. Setup a Checkout UI Extension based on the example code at Delivery
  2. Go to Shop Pay
  3. By default a Pickup Location will be chosen but isTargetSelected will be falsy

Expected behavior

isTargetSelected should be truthy for the chosen option

Hey @LeeHosty :waving_hand: - thanks for reporting this. I did a bit of digging into this and it looks like we have been tracking this internally as a potential bug as well.

I can’t guarantee anything in terms of a turnaround time/fix, but I’m going to look into this further on our end and loop back with you once I have more details to share.