We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1860f commit 4cfdb2aCopy full SHA for 4cfdb2a
src/BootstrapBlazor/Components/Textarea/Textarea.razor.js
@@ -3,7 +3,7 @@ import Data from "../../modules/data.js"
3
import EventHandler from "../../modules/event-handler.js"
4
5
export function init(id) {
6
- var el = document.getElementById(id);
+ const el = document.getElementById(id);
7
const text = {
8
prevMethod: '',
9
element: el
@@ -14,7 +14,7 @@ export function init(id) {
14
if (e.key === "Enter" || e.key === "NumpadEnter") {
15
const useShiftEnter = el.getAttribute('data-bb-shift-enter') === 'true';
16
const shiftKey = e.shiftKey;
17
- if (shiftKey && useShiftEnter) {
+ if (useShiftEnter && shiftKey === false) {
18
e.preventDefault();
19
}
20
0 commit comments