@skyscanner/backpack-web 31.0.0 → 31.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,6 +108,9 @@ export const BpkModalV2 = props => {
108
108
  }
109
109
  };
110
110
  if (isOpen) {
111
+ // There is a bug on older versions of browser using chromium (chrome, firefox, edge >114) where the dialog got an open attribute even before it is opened.
112
+ // Therefore, when trying to open it, it crashes and log an error mentioning the dialog has already an open attribute.
113
+ ref.current?.removeAttribute('open');
111
114
  ref.current?.showModal?.();
112
115
  if (dialogWithPolyfill) {
113
116
  handleBackdropClick(dialogWithPolyfill);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "31.0.0",
3
+ "version": "31.1.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",