jsuites 6.4.0 → 6.4.1

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.
Files changed (2) hide show
  1. package/dist/jsuites.js +11 -1
  2. package/package.json +2 -2
package/dist/jsuites.js CHANGED
@@ -6188,6 +6188,16 @@ if (! Modal && "function" === 'function') {
6188
6188
  }
6189
6189
  });
6190
6190
 
6191
+ // Any scroll outside the menu closes it (matches the OS context menu:
6192
+ // the menu refers to the spot that was right-clicked, and scrolling
6193
+ // moves that content away). Capture phase: scroll does not bubble.
6194
+ // Scrolling INSIDE a long menu list keeps it open
6195
+ window.addEventListener("scroll", function(e) {
6196
+ if (! self.isClosed() && ! (e.target instanceof Node && self.el.contains(e.target))) {
6197
+ self.close(0);
6198
+ }
6199
+ }, true);
6200
+
6191
6201
  // Keyboard event
6192
6202
  self.el.addEventListener("keydown", function(e) {
6193
6203
  // Menu object
@@ -23488,7 +23498,7 @@ var jSuites = {
23488
23498
  ...dictionary,
23489
23499
  ...helpers,
23490
23500
  /** Current version */
23491
- version: '6.4.0',
23501
+ version: '6.4.1',
23492
23502
  /** Bind new extensions to Jsuites */
23493
23503
  setExtensions: function(o) {
23494
23504
  if (typeof(o) == 'object') {
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "main": "dist/jsuites.js",
28
28
  "types": "dist/jsuites.d.ts",
29
- "version": "6.4.0",
29
+ "version": "6.4.1",
30
30
  "bugs": "https://github.com/jsuites/jsuites/issues",
31
31
  "homepage": "https://github.com/jsuites/jsuites",
32
32
  "docs": "https://jsuites.net",
@@ -35,7 +35,7 @@
35
35
  "@jsuites/utils": "^6.0.6",
36
36
  "@lemonadejs/calendar": "^5.9.3",
37
37
  "@lemonadejs/color": "^5.8.0",
38
- "@lemonadejs/contextmenu": "^5.8.4",
38
+ "@lemonadejs/contextmenu": "^5.8.5",
39
39
  "@lemonadejs/dropdown": "^5.8.3",
40
40
  "@lemonadejs/modal": "^5.8.3",
41
41
  "@lemonadejs/rating": "^5.8.1",