[go: nahoru, domu]

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

How to hide the Cancel button in Popconfirm? #4148

Open
ShuhuaGao opened this issue Aug 31, 2024 · 0 comments
Open

How to hide the Cancel button in Popconfirm? #4148

ShuhuaGao opened this issue Aug 31, 2024 · 0 comments

Comments

@ShuhuaGao
Copy link

According to the following line:

@if (CancelButtonProps != null)

It seems that setting the parameter CancelButtonProps to null would hide the cancel button. However, the following does not work, and the cancel button still appears:

<Popconfirm Title="Todo text cannot be empty!" CancelButtonProps="@null">
    <Button Type="@ButtonType.Primary" OnClick="@AddItem">Add</Button>
</Popconfirm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant