@vaadin/context-menu 23.1.0-rc3 → 23.1.2
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.
- package/package.json +11 -11
- package/src/vaadin-contextmenu-event.js +14 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/context-menu",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/component-base": "23.1.
|
|
41
|
-
"@vaadin/item": "23.1.
|
|
42
|
-
"@vaadin/list-box": "23.1.
|
|
43
|
-
"@vaadin/lit-renderer": "23.1.
|
|
44
|
-
"@vaadin/vaadin-lumo-styles": "23.1.
|
|
45
|
-
"@vaadin/vaadin-material-styles": "23.1.
|
|
46
|
-
"@vaadin/vaadin-overlay": "23.1.
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "23.1.
|
|
40
|
+
"@vaadin/component-base": "^23.1.2",
|
|
41
|
+
"@vaadin/item": "^23.1.2",
|
|
42
|
+
"@vaadin/list-box": "^23.1.2",
|
|
43
|
+
"@vaadin/lit-renderer": "^23.1.2",
|
|
44
|
+
"@vaadin/vaadin-lumo-styles": "^23.1.2",
|
|
45
|
+
"@vaadin/vaadin-material-styles": "^23.1.2",
|
|
46
|
+
"@vaadin/vaadin-overlay": "^23.1.2",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "^23.1.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@esm-bundle/chai": "^4.3.4",
|
|
51
|
-
"@vaadin/polymer-legacy-adapter": "23.1.
|
|
51
|
+
"@vaadin/polymer-legacy-adapter": "^23.1.2",
|
|
52
52
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
53
53
|
"sinon": "^13.0.2"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "6fb205c6e9a761feadfb779dd5d7af96d3102e56"
|
|
56
56
|
}
|
|
@@ -34,8 +34,20 @@ register({
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
_setSourceEvent(e) {
|
|
38
38
|
this.info.sourceEvent = e;
|
|
39
|
+
|
|
40
|
+
const path = e.composedPath();
|
|
41
|
+
|
|
42
|
+
// Calling `sourceEvent.composedPath()` after a timeout would return an empty array.
|
|
43
|
+
// This is especially problematic on iOS where we configure the timer on touchstart.
|
|
44
|
+
// Store the composed path to be used by `grid.getEventContext(event)` so it works.
|
|
45
|
+
this.info.sourceEvent.__composedPath = path;
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
touchstart(e) {
|
|
49
|
+
this._setSourceEvent(e);
|
|
50
|
+
|
|
39
51
|
this.info.touchStartCoords = {
|
|
40
52
|
x: e.changedTouches[0].clientX,
|
|
41
53
|
y: e.changedTouches[0].clientY,
|
|
@@ -80,7 +92,7 @@ register({
|
|
|
80
92
|
|
|
81
93
|
contextmenu(e) {
|
|
82
94
|
if (!e.shiftKey) {
|
|
83
|
-
this.
|
|
95
|
+
this._setSourceEvent(e);
|
|
84
96
|
this.fire(e.target, e.clientX, e.clientY);
|
|
85
97
|
prevent('tap');
|
|
86
98
|
}
|