Skip to content

Commit f31a4ce

Browse files
committed
undo unrelated changes
1 parent 3b8258f commit f31a4ce

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/utils/clean-field-name.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-warning-comments */
21
// TODO: Remove once we can handle multiple fields of the same name
32
export const cleanFieldName = (fieldName: string) =>
43
fieldName.replace(/\((?:auto|teleop)\)/, '').trim()

src/utils/move-focus-inside/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const tababblesStr = tabbables.join(',')
44

55
export const moveFocusInside = (el: HTMLElement) => {
66
if (el.matches(tababblesStr)) return el.focus()
7-
// eslint-disable-next-line no-warning-comments
87
// TODO: Should this handle elements with modified tabindex, like https://github.com/theKashey/focus-lock/blob/master/src/utils/tabOrder.js
98
const firstFocusableElement = el.querySelector(tababblesStr)
109
if (firstFocusableElement) (firstFocusableElement as HTMLElement).focus()

0 commit comments

Comments
 (0)