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

fix: custom Navbar back icon failure #3999

Merged
merged 2 commits into from Sep 20, 2021
Merged

fix: custom Navbar back icon failure #3999

merged 2 commits into from Sep 20, 2021

Conversation

p697
Copy link
Collaborator

@p697 p697 commented Sep 19, 2021

fix the problem of custom Navbar back icon

src/components/nav-bar/nav-bar.tsx Show resolved Hide resolved
@@ -29,14 +29,10 @@ export const NavBar = withDefaultProps(defaultProps)<NavBarProps>(props => {
<div className={`${classPrefix}-left`} role='button'>
{back !== null && (
<div className={`${classPrefix}-back`} onClick={props.onBack}>
{backArrow && (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不渲染图标的时候,这个 span 也不要渲染吧~这样更干净一些

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

殴克克

@awmleer awmleer self-assigned this Sep 19, 2021
@awmleer awmleer added this to the 5.0.0-beta milestone Sep 19, 2021
@awmleer awmleer added the bug label Sep 19, 2021
@p697 p697 requested a review from awmleer September 20, 2021 06:35
Copy link
Member

@awmleer awmleer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@awmleer awmleer merged commit c9ea3ad into ant-design:master Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants