noph-ui 0.19.0 → 0.19.1

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.
@@ -79,6 +79,8 @@
79
79
  {/snippet}
80
80
 
81
81
  <TextField
82
+ autocomplete="off"
83
+ {...attributes}
82
84
  {variant}
83
85
  type="text"
84
86
  populated={finalPopulated}
@@ -111,7 +113,6 @@
111
113
  bind:reportValidity
112
114
  bind:checkValidity
113
115
  bind:element
114
- {...attributes}
115
116
  >{@render children?.()}
116
117
  </TextField>
117
118
  <Menu
@@ -127,6 +128,11 @@
127
128
  ? 'var(--np-outlined-select-text-field-container-shape)'
128
129
  : 'var(--np-filled-select-text-field-container-shape)'}
129
130
  anchor={element}
131
+ ontoggle={(e) => {
132
+ if (e.newState === 'closed' && !populated && finalPopulated && !value) {
133
+ finalPopulated = false
134
+ }
135
+ }}
130
136
  bind:element={menuElement}
131
137
  >
132
138
  {#if useVirtualList}
@@ -8,7 +8,6 @@
8
8
  element = $bindable(),
9
9
  group = $bindable(),
10
10
  style,
11
- onpointerup,
12
11
  ...attributes
13
12
  }: CheckboxProps = $props()
14
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {