Skip to content

Commit

Permalink
Fix wrong tab behavior (ant-design#3903)
Browse files Browse the repository at this point in the history
* 修复:有多个layout时,如果其中一个layout中没有routes,将发收到另一个layout的菜单

* tabs 激活

tabs 激活
  • Loading branch information
kaoding authored and chenshuai2144 committed Apr 3, 2019
1 parent eee7643 commit d16a2e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PageHeaderWrapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const { Title } = Typography;
* In order to be compatible with the old version of the PageHeader
* basically all the functions are implemented.
*/
const renderFooter = ({ tabList, activeKeyProps, onTabChange, tabBarExtraContent }) => {
const renderFooter = ({ tabList, tabActiveKey, onTabChange, tabBarExtraContent }) => {
return tabList && tabList.length ? (
<Tabs
className={styles.tabs}
{...activeKeyProps}
activeKey={tabActiveKey}
onChange={key => {
if (onTabChange) {
onTabChange(key);
Expand Down

0 comments on commit d16a2e5

Please sign in to comment.