Skip to content

Commit e55bf40

Browse files
committed
remove some unused code
1 parent 33858a3 commit e55bf40

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

site/content/examples/15-composition/04-modal/Modal.svelte

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
if (e.key === 'Tab') {
1616
// trap focus
1717
const nodes = modal.querySelectorAll('*');
18-
const active = document.activeElement;
19-
2018
const tabbable = Array.from(nodes).filter(n => n.tabIndex >= 0);
21-
const first = tabbable[0];
22-
const last = tabbable[tabbable.length - 1];
2319
2420
let index = tabbable.indexOf(document.activeElement);
2521
if (index === -1 && e.shiftKey) index = 0;

0 commit comments

Comments
 (0)