@veritree/ui 0.74.0 → 0.75.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.
|
@@ -10,6 +10,10 @@ export const floatingUiContentMixin = {
|
|
|
10
10
|
type: Boolean,
|
|
11
11
|
default: false,
|
|
12
12
|
},
|
|
13
|
+
freeze: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false,
|
|
16
|
+
},
|
|
13
17
|
},
|
|
14
18
|
|
|
15
19
|
data() {
|
|
@@ -63,7 +67,7 @@ export const floatingUiContentMixin = {
|
|
|
63
67
|
},
|
|
64
68
|
|
|
65
69
|
onDocumentClick(e) {
|
|
66
|
-
if (!e || !this.el) {
|
|
70
|
+
if (!e || !this.el || this.freeze) {
|
|
67
71
|
return;
|
|
68
72
|
}
|
|
69
73
|
|
|
@@ -78,4 +82,4 @@ export const floatingUiContentMixin = {
|
|
|
78
82
|
this.activeDescedant = id;
|
|
79
83
|
},
|
|
80
84
|
},
|
|
81
|
-
}
|
|
85
|
+
};
|
package/package.json
CHANGED
|
@@ -133,7 +133,7 @@ export default {
|
|
|
133
133
|
* @type {number}
|
|
134
134
|
*/
|
|
135
135
|
const distanceToLeftEnd = Math.abs(
|
|
136
|
-
scrollWidth - offsetWidth - scrollLeft
|
|
136
|
+
scrollWidth - offsetWidth - scrollLeft,
|
|
137
137
|
);
|
|
138
138
|
|
|
139
139
|
// Check if the calculated distance is less than or equal to 10 pixels
|
|
@@ -135,8 +135,8 @@ export default {
|
|
|
135
135
|
keyCode === 'ArrowDown'
|
|
136
136
|
? 'firstMenuItem'
|
|
137
137
|
: keyCode === 'ArrowUp'
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
? 'lastMenuItem'
|
|
139
|
+
: null;
|
|
140
140
|
|
|
141
141
|
// settimeout here is delaying the focusing the element
|
|
142
142
|
// since it is not rendered yet. All items will only
|