MCPcopy Create free account
hub / github.com/react-component/select / renderDemo

Function renderDemo

tests/Multiple.test.tsx:363–368  ·  view source on GitHub ↗
(suffixIcon?: React.ReactNode)

Source from the content-addressed store, hash-verified

361
362 it('show arrow on multiple mode when explicitly set', () => {
363 const renderDemo = (suffixIcon?: React.ReactNode) => (
364 <Select mode="multiple" value={['']} suffixIcon={suffixIcon}>
365 <Option value={1}>1</Option>
366 <Option value={2}>2</Option>
367 </Select>
368 );
369 const { container, rerender } = render(renderDemo());
370
371 expect(container.querySelector('.rc-select-arrow')).toBeFalsy();

Callers 1

Multiple.test.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…