@mptw/skylens-ui 1.2.1 → 1.2.3

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.
@@ -126,6 +126,7 @@ export default defineComponent({
126
126
  "update:modelValue",
127
127
  "update:selecting",
128
128
  "search",
129
+ "update:search",
129
130
  "show:inputPopup",
130
131
  "hide:inputPopup",
131
132
  ],
@@ -224,7 +225,12 @@ export default defineComponent({
224
225
  function subscribeClick() {
225
226
  clickSubscriber = fromEvent(window, "click").subscribe((e) => {
226
227
  const { target } = e;
227
- if (select.value && !select.value.contains(target as HTMLElement)) {
228
+ if (
229
+ select.value &&
230
+ !select.value.contains(target as HTMLElement) &&
231
+ optionList.value &&
232
+ !optionList.value.contains(target as HTMLElement)
233
+ ) {
228
234
  hide();
229
235
  }
230
236
  });
@@ -391,6 +397,7 @@ export default defineComponent({
391
397
  });
392
398
  watch(search, () => {
393
399
  emit("search", search.value);
400
+ emit("update:search", search.value);
394
401
  });
395
402
 
396
403
  onMounted(() => {
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.3",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",