@mptw/skylens-ui 1.2.1 → 1.2.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/components/SLSelect.vue +6 -1
- package/package.json +1 -1
package/components/SLSelect.vue
CHANGED
|
@@ -224,7 +224,12 @@ export default defineComponent({
|
|
|
224
224
|
function subscribeClick() {
|
|
225
225
|
clickSubscriber = fromEvent(window, "click").subscribe((e) => {
|
|
226
226
|
const { target } = e;
|
|
227
|
-
if (
|
|
227
|
+
if (
|
|
228
|
+
select.value &&
|
|
229
|
+
!select.value.contains(target as HTMLElement) &&
|
|
230
|
+
optionList.value &&
|
|
231
|
+
!optionList.value.contains(target as HTMLElement)
|
|
232
|
+
) {
|
|
228
233
|
hide();
|
|
229
234
|
}
|
|
230
235
|
});
|