Skip to content

Commit 706a94b

Browse files
idanenwaynevanson
andcommitted
refactor: lazy call to get accessible value
Co-authored-by: Wayne Van Son <[email protected]>
1 parent 34d6978 commit 706a94b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ function getSingleElementValue(element) {
218218
case 'select':
219219
return getSelectValue(element)
220220
default: {
221-
const accessibleValue = getAccessibleValue(element)
222-
return element.value ?? accessibleValue
221+
return element.value ?? getAccessibleValue(element)
223222
}
224223
}
225224
}

0 commit comments

Comments
 (0)