You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

35 lines
647 B

import * as React from 'react';
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
demoTest('dropdown', {
testRootProps: false,
});
rootPropsTest(
'dropdown',
(Dropdown, props) => (
<Dropdown
{...props}
menu={{
openKeys: ['1'],
items: [
{
key: '1',
label: 'parent',
children: [
{
key: '2',
label: 'child',
},
],
},
],
}}
>
<a />
</Dropdown>
),
{
findRootElements: () => document.querySelector('.ant-dropdown')!,
},
);