We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c15a8 commit d0dcbaaCopy full SHA for d0dcbaa
1 file changed
tests/Tags.test.tsx
@@ -574,4 +574,14 @@ describe('Select.Tags', () => {
574
});
575
expect(onChange).not.toBeCalled();
576
577
+
578
+ // https://github.com/ant-design/ant-design/issues/56587
579
+ it('should not display placeholder', () => {
580
+ const { container } = render(<Select mode="tags" placeholder="Select items" open={false} />);
581
+ expect(container.querySelector('.rc-select-placeholder')).toBeTruthy();
582
+ const input = container.querySelector<HTMLInputElement>('input');
583
584
+ fireEvent.change(input, { target: { value: '2' } });
585
+ expect(container.querySelector('.rc-select-placeholder')).toBeFalsy();
586
+ });
587
0 commit comments