diff --git a/.changeset/seven-monkeys-lay.md b/.changeset/seven-monkeys-lay.md new file mode 100644 index 0000000000..283d09dbad --- /dev/null +++ b/.changeset/seven-monkeys-lay.md @@ -0,0 +1,7 @@ +--- +"@heroui/number-input": minor +"@heroui/select": minor +"@heroui/input": minor +--- + +fix isClearable implicit behaviour diff --git a/packages/components/input/__tests__/textarea.test.tsx b/packages/components/input/__tests__/textarea.test.tsx index ce0a7cf927..a332e0c6ec 100644 --- a/packages/components/input/__tests__/textarea.test.tsx +++ b/packages/components/input/__tests__/textarea.test.tsx @@ -60,12 +60,12 @@ describe("Textarea", () => { expect(onClear).toHaveBeenCalledTimes(0); }); - it("should appear clear button when just define onClear but not define isClearable", async () => { + it("should not appear clear button when only onClear is defined without isClearable", async () => { const onClear = jest.fn(); const ref = React.createRef(); - const {getByRole} = render( + const {queryByRole} = render(