@marianmeres/stuic 2.19.0 → 2.20.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.
@@ -324,10 +324,8 @@ export function popover(anchorEl, fn) {
324
324
  popoverEl.addEventListener("mouseenter", cancelHide);
325
325
  popoverEl.addEventListener("mouseleave", scheduleHide);
326
326
  }
327
- // For click mode with closeOnClickOutside
328
- if (currentOptions.trigger === "click" &&
329
- currentOptions.closeOnClickOutside !== false &&
330
- useAnchorPositioning) {
327
+ // For click or hover mode with closeOnClickOutside
328
+ if (currentOptions.closeOnClickOutside !== false && useAnchorPositioning) {
331
329
  // Delay adding click listener to avoid immediate close
332
330
  setTimeout(() => {
333
331
  document.addEventListener("click", onClickOutside);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "2.19.0",
3
+ "version": "2.20.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",