Closed sgregson closed 2 years ago
Hi, thank you for this great contribution. I am currently on vacation and will look at this and release at the beginning of the next week :)
Cheers, Mateusz
Glad to contribute! Aria-devtools is my go-to resource when teaching peers how to code advanced widgets like carousels and tabbed layouts.
Feel free to close the PR - I'll look out for the updates in the latest release and close if it's still open.
Sounds good :) I am closing this PR in this case.
Why
There are some occasions where the
textElement.text
may be undefined, resulting in the bug seen in #21.What
.text
field as optional in conditional logic before attempting to trim itDetails
Logic like
getAccessibleNameOf()
here seem to imply that the text field shouldn't be optional. I'm not exactly sure what the root cause makingtextElement.text === undefined
actually is.If it's not supposed to be optional, this patch doesn't solve the root cause.
fixes #21