Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After the tabs component closes all tabs, the Add button disappears #7077

Closed
ziqiangai opened this issue Nov 22, 2021 · 0 comments
Closed

After the tabs component closes all tabs, the Add button disappears #7077

ziqiangai opened this issue Nov 22, 2021 · 0 comments
Assignees

Comments

@ziqiangai
Copy link
Contributor

Reproduction link

https://stackblitz.com/edit/angular-m9djgw

Steps to reproduce

There is a problem with the tabs component. When opening and closing the tab page and the Add button, if all the open tab pages are closed, the Add button will not be found. This problem can be repeated in the official website document demo.

Tabs组件有一个问题,当开启关闭tab页和添加按钮时,如果把开启的tab页全部关掉,添加按钮也找不到了,这个问题在官网文档demo中即可复现。

What is expected?

关闭所有tabs选项卡应该还可以显示添加按钮

What is actually happening?

关闭所有tabs选项卡之后添加按钮就不见了

Environment Info
ng-zorro-antd 12.0.2
Browser Goole Chrome

#7076

我尝试修复了这个问题,这是pr的地址。

ziqiangai added a commit to ziqiangai/ng-zorro-antd that referenced this issue Nov 23, 2021
1.Move the add btn height css to patch.less from index.less
2.Add the btn shown test

Closes NG-ZORRO#7077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants