intelliwaketssveltekitv25 0.1.26 → 0.1.28

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.
@@ -134,6 +134,7 @@
134
134
 
135
135
  break
136
136
  case 'Tab':
137
+ if (verbose) console.log('Closing keyDownMenu tab')
137
138
  show = false
138
139
 
139
140
  break
@@ -146,6 +147,7 @@
146
147
 
147
148
  ddAction.action()
148
149
  if (!ddAction.noCloseMenu) {
150
+ if (verbose) console.log('Closing keyDownMenu action')
149
151
  show = false
150
152
  }
151
153
  } else if (ddAction && ddAction.href) {
@@ -153,6 +155,7 @@
153
155
  e.preventDefault()
154
156
 
155
157
  if (!ddAction.noCloseMenu) {
158
+ if (verbose) console.log('Closing keyDownMenu href')
156
159
  show = false
157
160
  }
158
161
  goto(ddAction.href, { replaceState: ddAction.hrefReplace })
@@ -179,10 +182,12 @@
179
182
  if (ddAction.action) {
180
183
  ddAction.action()
181
184
  if (!ddAction.noCloseMenu) {
185
+ if (verbose) console.log('Closing performAction action')
182
186
  show = false
183
187
  }
184
188
  } else if (ddAction.href) {
185
189
  if (!ddAction.noCloseMenu) {
190
+ if (verbose) console.log('Closing performAction href')
186
191
  show = false
187
192
  }
188
193
  goto(ddAction.href, { replaceState: ddAction.hrefReplace })
@@ -194,6 +199,7 @@
194
199
  if (show && !ddAction.disabled && !!ddAction.alternateAction) {
195
200
  ddAction.alternateAction()
196
201
  if (!ddAction.alternateNoClose) {
202
+ if (verbose) console.log('Closing performAlternateAction')
197
203
  show = false
198
204
  }
199
205
  }
@@ -248,7 +254,7 @@
248
254
  aria-expanded={show}
249
255
  aria-haspopup='true'
250
256
  onkeydown={keyDownButton}
251
- tabindex={-1}>
257
+ tabindex={0}>
252
258
  {#if button}
253
259
  {@render button()}
254
260
  {/if}
@@ -294,7 +294,7 @@
294
294
  <div class={useControlClass}
295
295
  bind:this={parentDivElement}
296
296
  role="button"
297
- tabindex={index}
297
+ tabindex={-1}
298
298
  {onblur}
299
299
  {onkeydown}
300
300
  {onfocusin}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",