@invopop/popui 0.0.67 → 0.0.69

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.
@@ -104,7 +104,7 @@ function handleClick(event) {
104
104
  {/if}
105
105
  {#if notification}
106
106
  <span
107
- class="absolute top-0 right-0 -mt-0.5 -mr-0.5 w-1.5 h-1.5 bg-danger-500 rounded-full z-20"
107
+ class="absolute top-0 right-0 w-1.5 h-1.5 bg-danger-500 rounded-full z-20"
108
108
  />
109
109
  {/if}
110
110
  </div>
@@ -211,7 +211,10 @@ function getDisplayFromValue(value) {
211
211
  class:right-0={position === 'right'}
212
212
  class="bg-white inline-flex flex-col shadow rounded-lg absolute right-0 top-2 z-40"
213
213
  use:clickOutside
214
- on:click_outside={cancel}
214
+ on:click_outside={() => {
215
+ if (!isOpen) return
216
+ cancel()
217
+ }}
215
218
  >
216
219
  <div class="flex border-b border-neutral-100 h-[300px]">
217
220
  <div class="flex flex-col space-y-2 items-start p-3 border-r border-neutral-100">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.0.67",
4
+ "version": "0.0.69",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && npm run package",