@marianmeres/stuic 3.40.0 → 3.40.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.
@@ -71,6 +71,9 @@
71
71
  waitForNextRepaint().then(() => {
72
72
  try {
73
73
  dialog?.showModal();
74
+ // Move focus from dialog to the box div (which has tabindex="-1")
75
+ // so it's not an extra tab stop — Tab goes directly to the first button
76
+ if (noAutoFocus) box?.focus();
74
77
  } catch (e) {
75
78
  console.error("ModalDialog: Failed to open dialog:", e);
76
79
  visible = false;
@@ -191,6 +194,7 @@
191
194
  -->
192
195
  <div
193
196
  bind:this={box}
197
+ tabindex={noAutoFocus ? -1 : undefined}
194
198
  onpointerdown={stopPropagation()}
195
199
  onclick={stopPropagation()}
196
200
  data-type={type}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "3.40.0",
3
+ "version": "3.40.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",