polarvo-layout 1.0.85 → 1.0.86
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
|
@@ -131,6 +131,12 @@ function onHover(e) {
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
// 선택 대상에서 제외하도록 마킹된 요소는 무시 (예: 폼 하단 고정 제출 버튼)
|
|
135
|
+
if (e.target.closest('[data-no-select]')) {
|
|
136
|
+
setHovered(null);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
|
|
134
140
|
const leafEl = e.target.closest('[data-leaf]');
|
|
135
141
|
const ownerEl = e.target.closest('[data-style-owner]');
|
|
136
142
|
if (!leafEl || !ownerEl) {
|
|
@@ -145,11 +151,17 @@ function onClick(e) {
|
|
|
145
151
|
const activeElRoot = isEligible(e);
|
|
146
152
|
if (!activeElRoot) return;
|
|
147
153
|
|
|
154
|
+
// 선택 대상에서 제외하도록 마킹된 요소는 무시 (예: 폼 하단 고정 제출 버튼)
|
|
155
|
+
if (e.target.closest('[data-no-select]')) {
|
|
156
|
+
e.preventDefault();
|
|
157
|
+
e.stopPropagation();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
|
|
148
161
|
const leafEl = e.target.closest('[data-leaf]');
|
|
149
162
|
const ownerEl = e.target.closest('[data-style-owner]');
|
|
150
163
|
if (!leafEl || !ownerEl) return;
|
|
151
164
|
|
|
152
|
-
|
|
153
165
|
// leaf 내부의 실제 버튼/링크/폼 제출 등 기본 동작 막기
|
|
154
166
|
e.preventDefault();
|
|
155
167
|
e.stopPropagation();
|