mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
fix(module: dropdown): context menu would show on "OnClick" event (#678)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
This commit is contained in:
parent
20ec26034d
commit
3ca6a1ba96
@ -202,7 +202,7 @@ namespace AntDesign.Internal
|
||||
|
||||
protected virtual async Task OnTriggerClick()
|
||||
{
|
||||
if (IsContainTrigger(TriggerType.Click) || IsContainTrigger(TriggerType.ContextMenu))
|
||||
if (IsContainTrigger(TriggerType.Click))
|
||||
{
|
||||
if (_overlay.IsPopup())
|
||||
{
|
||||
@ -213,6 +213,10 @@ namespace AntDesign.Internal
|
||||
await Show();
|
||||
}
|
||||
}
|
||||
else if (IsContainTrigger(TriggerType.ContextMenu) && _overlay.IsPopup())
|
||||
{
|
||||
await Hide();
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual async Task OnTriggerContextmenu(MouseEventArgs args)
|
||||
|
Loading…
Reference in New Issue
Block a user