Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
82 stars 9 forks source link

ResourcePicker in Shopify Polaris is bugged when provided with initialSelectionIds #355

Open SoerenGooss opened 1 month ago

SoerenGooss commented 1 month ago

Summary

Since a few days the ResourcePicker is bugged when provided with "initialSelectionIds" and "multiple" is set to false. After deselecting the preselected items, everthing gets disabled and cannot be selected anymore. Screenshot 2024-05-22 151434 Screenshot 2024-05-22 151412 Screenshot 2024-05-22 151421 Found another user with the same problem: https://community.shopify.com/c/shopify-apps/resourcepicker-is-buggy-when-selectmultiple-is-false-and/td-p/2582624

Expected behavior

The selected item should be deselected and everything else becomes available for selection.

Actual behavior

The selected item gets deselected but everything gets disabled after that.

Steps to reproduce

  1. Provide ResourcePicker with initialSelectionIds
  2. Deselect selected Items

Are you using React components?

None

Polaris version number

^12.0.0

Browser

Chrome

Device

No response

charlesdobson commented 1 month ago

Hey @SoerenGooss,

This looks like an App Bridge issue. I'll transfer it over to https://github.com/Shopify/shopify-app-bridge/issues so we can take a look at it.

GeorgiZhelev commented 3 weeks ago

hi @charlesdobson, just wanted to ask if this has been fixed in any recent version? I've been on 3.7.7 for months but only spotted this recently

marcdelalonde commented 2 weeks ago

Please fix this problem 🙏

skamarakas commented 1 week ago

any progress on this issue? 👀

charlesmdp commented 1 week ago

any update ? it's been months and it's seriously impacting thousands of app users on my partner