Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/migrate-downshift-usecombobox.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@commercetools-uikit/date-input': patch
'@commercetools-uikit/date-range-input': patch
'@commercetools-uikit/date-time-input': patch
---

Migrate date inputs from Downshift render-prop API to `useCombobox` hook to fix `TypeError: t.contains is not a function` crash in downshift@9.3.6 with React 19.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ describe('when field is touched and has errors', () => {
touched: true,
errors: { missing: true },
});
expect(getByRole('textbox')).toHaveAccessibleErrorMessage(
expect(getByRole('combobox')).toHaveAccessibleErrorMessage(
/field is required/i
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe('when field is touched and has errors', () => {
touched: true,
errors: { missing: true },
});
expect(getByRole('textbox')).toHaveAccessibleErrorMessage(
expect(getByRole('combobox')).toHaveAccessibleErrorMessage(
/field is required/i
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe('when field is touched and has errors', () => {
touched: true,
errors: { missing: true },
});
expect(getByRole('textbox')).toHaveAccessibleErrorMessage(
expect(getByRole('combobox')).toHaveAccessibleErrorMessage(
/field is required/i
);
});
Expand Down
Loading
Loading