Skip to content

Commit 11f74e6

Browse files
committed
fix: add multiple test
1 parent c69afdf commit 11f74e6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Multiple.test.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,5 +681,16 @@ describe('Select.Multiple', () => {
681681
toggleOpen(wrapper);
682682
expect(wrapper.find('input').props().value).toBe('');
683683
});
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+
});
684695
});
685696
});

0 commit comments

Comments
 (0)