combo tabs 模式不能按需渲染

This commit is contained in:
2betop 2020-01-17 14:58:39 +08:00
parent d22e3f10fd
commit f96ef3f36d
1 changed files with 3 additions and 3 deletions

View File

@ -754,9 +754,9 @@ export default class ComboControl extends React.Component<ComboProps> {
key={this.keys[index] || (this.keys[index] = guid())}
toolbar={toolbar}
eventKey={index}
// 先注掉,因为 unique 会失效。
// mountOnEnter={true}
// unmountOnExit={false}
// 不能按需渲染,因为 unique 会失效。
mountOnEnter={false}
unmountOnExit={false}
>
{condition && typeSwitchable !== false ? (
<div className={cx('Combo-itemTag')}>