--- order: 99 title: zh-CN: Style debug en-US: Style debug debug: true --- ## zh-CN buggy! ## en-US buggy! ```tsx import * as React from 'react'; import { Menu, MenuProps, Switch } from 'antd'; import { MailOutlined, AppstoreOutlined } from '@ant-design/icons'; const { SubMenu } = Menu; interface DemoState { theme: 'light' | 'dark'; current: string; } class Demo extends React.Component<{}, DemoState> { state: DemoState = { theme: 'dark', current: '1', }; changeTheme = (value: boolean) => { this.setState({ theme: value ? 'dark' : 'light', }); }; handleClick: MenuProps['onClick'] = e => { console.log('click ', e); this.setState({ current: e.key, }); }; render() { return ( <>

React.cloneElement(node, { style: { ...node.props.style, textDecoration: 'underline', }, }) } // Test only. Remove in future. _internalRenderSubMenuItem={node => React.cloneElement(node, { style: { ...node.props.style, background: 'rgba(255,255,255,0.3)', }, }) } // Test only. Remove in future. _internalDisableMenuItemTitleTooltip > } title="Navigation One Long Long Long Long"> Option 1 Option 2 Option 3 Option 4 } title="Navigation Two"> Option 5 Option 6 Option 7 Option 8 Option 11 Option 12 ); } } ReactDOM.render(, mountNode); ```