Skip to content

Commit b7d8e10

Browse files
committed
2 parents d274bfb + 1eca191 commit b7d8e10

File tree

17 files changed

+169
-108
lines changed

17 files changed

+169
-108
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<PackageReference Include="BootstrapBlazor.BarCode" Version="9.0.1" />
3030
<PackageReference Include="BootstrapBlazor.BarcodeGenerator" Version="9.0.0" />
3131
<PackageReference Include="BootstrapBlazor.BootstrapIcon" Version="9.0.2" />
32-
<PackageReference Include="BootstrapBlazor.Chart" Version="9.0.3" />
32+
<PackageReference Include="BootstrapBlazor.Chart" Version="9.0.4" />
3333
<PackageReference Include="BootstrapBlazor.ChatBot" Version="9.0.0" />
3434
<PackageReference Include="BootstrapBlazor.CherryMarkdown" Version="9.0.3" />
3535
<PackageReference Include="BootstrapBlazor.CodeEditor" Version="9.0.3" />
@@ -66,7 +66,7 @@
6666
<PackageReference Include="BootstrapBlazor.PdfViewer" Version="9.0.6" />
6767
<PackageReference Include="BootstrapBlazor.Player" Version="9.0.2" />
6868
<PackageReference Include="BootstrapBlazor.RDKit" Version="9.0.2" />
69-
<PackageReference Include="BootstrapBlazor.Region" Version="9.0.1" />
69+
<PackageReference Include="BootstrapBlazor.Region" Version="9.0.2" />
7070
<PackageReference Include="BootstrapBlazor.SignaturePad" Version="9.0.1" />
7171
<PackageReference Include="BootstrapBlazor.SmilesDrawer" Version="9.0.2" />
7272
<PackageReference Include="BootstrapBlazor.Sortable" Version="9.0.3" />

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.11.2</Version>
4+
<Version>9.11.3-beta02</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
data-bb-auto-dropdown-focus="@ShowDropdownListOnFocusString" data-bb-debounce="@DurationString"
1313
data-bb-skip-esc="@SkipEscString" data-bb-skip-enter="@SkipEnterString" data-bb-blur="@TriggerBlurString"
1414
data-bb-scroll-behavior="@ScrollIntoViewBehaviorString" data-bb-trigger-delete="true"
15-
placeholder="@PlaceHolder" disabled="@Disabled" @ref="FocusElement"/>
15+
placeholder="@PlaceHolder" disabled="@Disabled" />
1616
<span class="form-select-append"><i class="@Icon"></i></span>
1717
<span class="form-select-append ac-loading"><i class="@LoadingIcon"></i></span>
1818
@if (GetClearable())

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ protected override void OnParametersSet()
132132
PlaceHolder ??= Localizer[nameof(PlaceHolder)];
133133
Icon ??= IconTheme.GetIconByKey(ComponentIcons.AutoCompleteIcon);
134134
LoadingIcon ??= IconTheme.GetIconByKey(ComponentIcons.LoadingIcon);
135-
136-
_clientValue = Value;
137135
}
138136

139137
/// <summary>

src/BootstrapBlazor/Components/AutoFill/AutoFill.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
data-bb-auto-dropdown-focus="@ShowDropdownListOnFocusString" data-bb-debounce="@DurationString"
1515
data-bb-skip-esc="@SkipEscString" data-bb-skip-enter="@SkipEnterString"
1616
data-bb-scroll-behavior="@ScrollIntoViewBehaviorString"
17-
placeholder="@PlaceHolder" disabled="@Disabled" @ref="FocusElement" />
17+
placeholder="@PlaceHolder" disabled="@Disabled" />
1818
<span class="form-select-append"><i class="@Icon"></i></span>
1919
<span class="form-select-append ac-loading"><i class="@LoadingIcon"></i></span>
2020
@if (GetClearable())

src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private void SetDefaultValue(string defaultValue)
203203

204204
private string? ClassString => CssBuilder.Default("select cascade menu dropdown")
205205
.AddClass("disabled", IsDisabled)
206-
.AddClass("cls", IsClearable)
206+
.AddClass("is-clearable", IsClearable)
207207
.AddClass(CssClass).AddClass(ValidCss)
208208
.Build();
209209

src/BootstrapBlazor/Components/Input/BootstrapInput.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ else
2727
@<input @attributes="@AdditionalAttributes" type="@Type" id="@Id" class="@ClassName"
2828
readonly="@ReadonlyString" disabled="@Disabled"
2929
placeholder="@PlaceHolder"
30-
@bind-value="CurrentValueAsString" @bind-value:event="@EventString" @onblur="@OnBlur" @ref="FocusElement" />;
30+
@bind-value="CurrentValueAsString" @bind-value:event="@EventString" @onblur="@OnBlur" />;
3131
}

src/BootstrapBlazor/Components/Input/BootstrapInput.razor.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import EventHandler from "../../modules/event-handler.js"
22

3+
export function focus(id) {
4+
const el = document.getElementById(id)
5+
if (el) {
6+
el.focus();
7+
}
8+
}
9+
310
export function clear(id) {
411
const el = document.getElementById(id)
512
if (el) {

src/BootstrapBlazor/Components/Input/BootstrapInputBase.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ public abstract class BootstrapInputBase<TValue> : ValidateBase<TValue>
1919
.AddClass(CssClass).AddClass(ValidCss)
2020
.Build();
2121

22-
/// <summary>
23-
/// Gets or sets Element reference instance
24-
/// </summary>
25-
protected ElementReference FocusElement { get; set; }
26-
2722
/// <summary>
2823
/// Gets or sets the placeholder attribute value
2924
/// </summary>
@@ -102,7 +97,7 @@ public abstract class BootstrapInputBase<TValue> : ValidateBase<TValue>
10297
/// Method to focus the element
10398
/// </summary>
10499
/// <returns></returns>
105-
public async Task FocusAsync() => await FocusElement.FocusAsync();
100+
public async Task FocusAsync() => await InvokeVoidAsync("focus", GetInputId());
106101

107102
/// <summary>
108103
/// Method to select all text

src/BootstrapBlazor/Components/Input/FloatingLabel.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
@inherits BootstrapInputBase<TValue>
44

55
<div class="@ClassString">
6-
<input @attributes="@AdditionalAttributes" type="@Type" id="@Id" placeholder="@PlaceHolder" class="@ClassName" disabled="@Disabled" @bind-value="@CurrentValueAsString" @onblur="@OnBlur" @ref="FocusElement" />
6+
<input @attributes="@AdditionalAttributes" type="@Type" id="@Id" placeholder="@PlaceHolder" class="@ClassName" disabled="@Disabled" @bind-value="@CurrentValueAsString" @onblur="@OnBlur" />
77
<label for="@Id">@DisplayText</label>
88
</div>

0 commit comments

Comments
 (0)