We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9195ba5 commit a4389caCopy full SHA for a4389ca
components/menu/MenuItem.jsx
@@ -21,8 +21,14 @@ export default {
21
const { level, title, rootPrefixCls } = props;
22
const { getInlineCollapsed, $slots, $attrs: attrs } = this;
23
const inlineCollapsed = getInlineCollapsed();
24
+ let tooltipTitle = title;
25
+ if (typeof title === 'undefined') {
26
+ tooltipTitle = level === 1 ? $slots.default : '';
27
+ } else if (title === false) {
28
+ tooltipTitle = '';
29
+ }
30
const tooltipProps = {
- title: title || (level === 1 ? $slots.default : ''),
31
+ title: tooltipTitle,
32
};
33
const siderCollapsed = this.layoutSiderContext.sCollapsed;
34
if (!siderCollapsed && !inlineCollapsed) {
0 commit comments