fix(list-box): use aria-disabled instead of invalid disabled attribute (#2125)

This commit is contained in:
Eric Liu 2025-03-19 12:43:05 -07:00 committed by GitHub
commit e1b3ef22c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ describe("ComboBox", () => {
await user.click(screen.getByRole("textbox"));
const disabledOption = screen.getByText(/Fax/).closest('[role="option"]');
assert(disabledOption);
expect(disabledOption).toHaveAttribute("disabled", "true");
expect(disabledOption).toHaveAttribute("aria-disabled", "true");
await user.click(disabledOption);
expect(screen.getByRole("textbox")).toHaveValue("");