Skip to content

Commit 434e68c

Browse files
keithamusmuan
andauthored
style: move let binding closer to first use
Co-Authored-By: Mu-An 慕安 <[email protected]>
1 parent d91d2f0 commit 434e68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ class MarkdownToolbarElement extends HTMLElement {
274274

275275
function onToolbarFocus({target}: FocusEvent) {
276276
if (!(target instanceof Element)) return
277-
let tabindex = '0'
278277
target.removeAttribute('tabindex')
278+
let tabindex = '0'
279279
for (const button of getButtons(target)) {
280280
button.setAttribute('tabindex', tabindex)
281281
if (tabindex === '0') {

0 commit comments

Comments
 (0)