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:
- Setup a Checkout UI Extension based on the example code at Delivery
- Go to Shop Pay
- By default a Pickup Location will be chosen but
isTargetSelected
will be falsy
Expected behavior
isTargetSelected
should be truthy for the chosen option