fix(module: select): fix reference and remove the duplicaed div (#4175)

This commit is contained in:
James Yeung 2024-09-09 00:37:57 +08:00 committed by GitHub
parent aaa1377ea6
commit 7732465489
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -8,8 +8,8 @@
<CascadingValue Value="this" IsFixed="IsSelectFixed()">
<CascadingValue Value=@("ant-select-dropdown") Name="PrefixCls" IsFixed>
<div class="@ClassMapper.Class" style="@Style" id="@Id" tabindex="-1" @ref="Ref">
<OverlayTrigger @ref="@_dropDown"
<OverlayTrigger @ref="@_dropDown"
TriggerReference="RefBack.Current"
Visible="@Open"
VisibleChanged="OpenChanged"
Disabled="Disabled"
@ -42,7 +42,7 @@
<CascadingValue Value="@ShowSearchIcon" Name="ShowSearchIcon">
<CascadingValue Value="@ShowArrowIcon" Name="ShowArrowIcon">
<SelectContent Prefix="@ClassPrefix"
RefBack="@context"
RefBack="@RefBack"
@ref="_selectContent"
TItemValue="TItemValue"
TItem="TItem"
@ -65,7 +65,6 @@
</CascadingValue>
</Unbound>
</OverlayTrigger>
</div>
</CascadingValue>
</CascadingValue>

View File

@ -11,7 +11,7 @@
}
<div class="@ParentSelect.CurrentClassMapper.Class"
style="@ParentSelect.Style"
id="@Id"
id="@ParentSelect.Id"
tabindex="-1"
@ref="@Ref"
>