Skip to content

Commit ee8c49c

Browse files
idanenwaynevanson
andauthored
refactor: lazy call to get accessible value
Co-authored-by: Wayne Van Son <[email protected]>
1 parent ed48108 commit ee8c49c

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
@@ -219,8 +219,7 @@ function getSingleElementValue(element) {
219219
case 'select':
220220
return getSelectValue(element)
221221
default: {
222-
const accessibleValue = getAccessibleValue(element)
223-
return element.value ?? accessibleValue
222+
return element.value ?? getAccessibleValue(element)
224223
}
225224
}
226225
}

0 commit comments

Comments
 (0)