Skip to content

Commit 7921a8a

Browse files
ArgoZhangbob9307
andauthored
fix(Textarea): should trigger keyboard event when set UseShiftEnter to false (#5656)
* fix(Textarea): should trigger enter keyboard event * chore: bump version 9.5.0-beta04 Co-Authored-By: bob9307 <[email protected]> --------- Co-authored-by: bob9307 <[email protected]>
1 parent 08b8d60 commit 7921a8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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.5.0-beta03</Version>
4+
<Version>9.5.0-beta04</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Textarea/Textarea.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function init(id) {
1414
if (e.key === "Enter" || e.key === "NumpadEnter") {
1515
const useShiftEnter = el.getAttribute('data-bb-shift-enter') === 'true';
1616
const shiftKey = e.shiftKey;
17-
if (!shiftKey || !useShiftEnter) {
17+
if (shiftKey && useShiftEnter) {
1818
e.preventDefault();
1919
}
2020
}

0 commit comments

Comments
 (0)