adtec-core-package 2.7.3 → 2.7.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -95,15 +95,16 @@ const blurEvent = (event: FocusEvent) => {
95
95
 
96
96
  const keyUpEvent = (event: KeyboardEvent) => {
97
97
  if (event.key === 'Enter') {
98
+ event.preventDefault();
99
+ event.stopPropagation();
100
+
98
101
  const applicationModule = moduleName.value || sessionStorage.getItem('applicationModule');
99
- // 首先判断当前页面有没有抽屉
100
102
  const docTemp = event.currentTarget as any;
101
103
  const doc = applicationModule === 'system'
102
104
  ? (docTemp as Document)
103
105
  : (docTemp && docTemp[applicationModule ?? 'default'] && docTemp[applicationModule ?? 'default'].document) || undefined;
104
106
 
105
107
  if (!doc) return;
106
-
107
108
  // 工具函数:判断元素是否可见(未隐藏、display不为none、visibility不为hidden)
108
109
  const isElementVisible = (el: HTMLElement | null): boolean => {
109
110
  if (!el) return false;