Created
April 30, 2022 02:57
-
-
Save robsonsobral/aeec69d52f9240fc3408ec6c7f7ea671 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getLabelTextFromField(formElement) { | |
return formElement.ariaLabel | |
|| formElement.labels?.[0]?.textContent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment