feat: add an isDisabled function to identify whether elements are disabled or not#919
Conversation
🦋 Changeset detectedLatest commit: 38c8dbe The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
eps1lon
left a comment
There was a problem hiding this comment.
These seems very much like an implementation detail. I assumed you meant to add a method that checks if an element is considered disabled in the a11y tree.
But this is too low level to be considered for a public API.
That makes a lot more sense. |
|
Hi @eps1lon, pinging you about this change :) |
This was discussed in testing-library/dom-testing-library#1221 (comment)
I wasn't sure where's the right place to put this one, please let me know if there's a better place for this and I'll change (I thought about creating a new file but didn't want to make a mess).
Thanks!