-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Modal footer divider persists when buttons removed #5462
Comments
Check this you will find that we just add your custom component to the footer container. So if you want to implement your goal,you should make some change in the src code such as add a property in footer i.e.:
Of course you can do this via judging Welecome pr~ |
It seems that we cannot set But we can update this line of code to achieve your target: footer={footer === undefined ? defaultFooter : footer} |
|
Is this actually a bug? I have used antd for a while in my project, but i never dive into the codes. Is this a good one for beginner to start with? Thx. |
IMO,maybe we can provide more fine-grained api like I say avove.Because there must be some people will consider that keep the bottom line is better for UX.So base on this,if you just want to achieve your target,set border be |
Fair point. But IMO, the top border of the footer is kind of a divider to seperate it from the content. If you don't need the footer, then you don't need the divider. I think this is more common. If some people really want the divider but not the footer, it makes more sense to add bottom border to the content div. Changing the footer api would make it unnecessarily tedious. |
Yeah~That's up to you,just hope maybe it will inspired you.For me both of them are ok. |
Thanks, everyone! The library looks great and I look forward to trying out the fix. As a side note, we found a workaround in 2.8.0 where we remount the modal when we change the footer. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
The Modal component shows the bottom divider when the
footer
prop is set tonull
.Environment(required)
What did you do? Please provide steps to re-produce your problem.
Modal
component with thevisible
proptrue
and thefooter
prop as some non-null element.footer
prop tonull
What do you expected?
I would expect the footer section and divider to be hidden as it is in this image.
What happen?
It is not hidden.
The text was updated successfully, but these errors were encountered: