fix(module: select): dropdown boundary adjust mode defult to InView (#2995)

This commit is contained in:
James Yeung 2023-01-08 21:22:31 +08:00 committed by GitHub
parent 88af57bd09
commit 49022ea8e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -22,12 +22,6 @@ namespace AntDesign
{
#region Parameters
/// <summary>
/// Overlay adjustment strategy (when for example browser resize is happening)
/// </summary>
[Parameter]
public TriggerBoundaryAdjustMode BoundaryAdjustMode { get; set; } = TriggerBoundaryAdjustMode.None;
/// <summary>
/// Toggle the border style.
/// </summary>

View File

@ -57,6 +57,12 @@ namespace AntDesign
protected Action<TItem, TItemValue> _setValue;
/// <summary>
/// Overlay adjustment strategy (when for example browser resize is happening)
/// </summary>
[Parameter]
public TriggerBoundaryAdjustMode BoundaryAdjustMode { get; set; } = TriggerBoundaryAdjustMode.InView;
/// <summary>
/// Show clear button. Has no effect if <see cref="AntInputComponentBase{TValue}.Value"/> type default
/// is also in the list of <see cref="SelectOption{TItemValue, TItem}"/>,

View File

@ -17,6 +17,7 @@
OnMouseLeave="@(() => { OnMouseLeave?.Invoke(); })"
OnVisibleChange="@OnOverlayVisibleChangeAsync"
PopupContainerSelector="@PopupContainerSelector"
BoundaryAdjustMode="BoundaryAdjustMode"
OverlayEnterCls="ant-slide-up-enter ant-slide-up-enter-active ant-slide-up"
OverlayLeaveCls="ant-slide-up-leave ant-slide-up-leave-active ant-slide-up">
<Overlay>