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 c69afdf commit 11f74e6Copy full SHA for 11f74e6
tests/Multiple.test.tsx
@@ -681,5 +681,16 @@ describe('Select.Multiple', () => {
681
toggleOpen(wrapper);
682
expect(wrapper.find('input').props().value).toBe('');
683
});
684
+ it('input should not be readonly when autoClearSearchValue and showSearch are both false', () => {
685
+ const wrapper = mount(
686
+ <Select
687
+ mode="multiple"
688
+ autoClearSearchValue={false}
689
+ showSearch={false}
690
+ searchValue="test"
691
+ />,
692
+ );
693
+ expect(wrapper.find('input').props().readOnly).toBe(true);
694
+ });
695
696
0 commit comments