@openproject/primer-view-components 0.56.0 → 0.56.1-rc.4cf061397

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.
@@ -102,6 +102,9 @@ export class DialogHelperElement extends HTMLElement {
102
102
  // The click target _must_ be the dialog element itself, and not elements underneath or inside.
103
103
  if (target !== dialog || !dialog?.open)
104
104
  return;
105
+ // If the dialog contains a form, do not close the dialog when clicking outside of the dialog
106
+ if (dialog.querySelector('form'))
107
+ return;
105
108
  const rect = dialog.getBoundingClientRect();
106
109
  const clickWasInsideDialog = rect.top <= event.clientY &&
107
110
  event.clientY <= rect.top + rect.height &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.56.0",
3
+ "version": "0.56.1-rc.4cf061397",
4
4
  "description": "ViewComponents of the Primer Design System for OpenProject",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",