Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.0.0-rc.2.11.10.2</Version>
<Version>9.0.0-rc.2.11.11.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export function init(id, invoke, method) {
}

const state = el.getAttribute("data-bb-state");
let val = null;
if (state) {
val = state == "1" ? 0 : 1;
el.removeAttribute('data-bb-state');

if (state === "1") {
Expand All @@ -24,7 +26,7 @@ export function init(id, invoke, method) {
el.parentElement.classList.add('is-checked');
}
}
const result = await invoke.invokeMethodAsync(method, state == "1" ? 0 : 1);
const result = await invoke.invokeMethodAsync(method, val);
if (result === false) {
e.preventDefault();
}
Expand Down