Skip to content

Commit

Permalink
refactor: lazy call to get accessible value
Browse files Browse the repository at this point in the history
Co-authored-by: Wayne Van Son <[email protected]>
  • Loading branch information
idanen and waynevanson committed Aug 5, 2024
1 parent 34d6978 commit 706a94b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ function getSingleElementValue(element) {
case 'select':
return getSelectValue(element)
default: {
const accessibleValue = getAccessibleValue(element)
return element.value ?? accessibleValue
return element.value ?? getAccessibleValue(element)
}
}
}
Expand Down

0 comments on commit 706a94b

Please sign in to comment.