Skip to content

chore: fix getAriaValue and hasAriaValue to handle external api internals - #5164

Merged
straker merged 3 commits into
developfrom
elm-internals-fix-aria-value
Jun 12, 2026
Merged

chore: fix getAriaValue and hasAriaValue to handle external api internals#5164
straker merged 3 commits into
developfrom
elm-internals-fix-aria-value

Conversation

@straker

@straker straker commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Discovered as part of the conversion of commons/dom. @chutchins25 had pointed out that the null only check would fail if the value was ever undefined, but since all browsers supported null on all ARIA prop values I didn't think it was necessary. Well turns out that when we set the internals to an object for the external api code, the values no longer return null when missing but undefined. So need to add the undefined check for those cases.

Is chore as we don't need to announce this fix in the changelog as the feature hasn't be released yet

@straker
straker requested a review from a team as a code owner June 11, 2026 21:58
@straker
straker merged commit 00519cc into develop Jun 12, 2026
25 checks passed
@straker
straker deleted the elm-internals-fix-aria-value branch June 12, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants