@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.
@@ -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 (select.value && !select.value.contains(target as HTMLElement)) {
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
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",