diff --git a/src/Public/Outputs.ps1 b/src/Public/Outputs.ps1
index 58efdb71..5506de83 100644
--- a/src/Public/Outputs.ps1
+++ b/src/Public/Outputs.ps1
@@ -514,6 +514,10 @@ function Update-PodeWebTextbox
[string]
$Id,
+ [Alias('Height')]
+ [int]
+ $Size = 0,
+
[Parameter()]
[switch]
$AsJson,
@@ -542,6 +546,7 @@ function Update-PodeWebTextbox
Value = $items
ID = $Id
Name = $Name
+ Size = $Size
AsJson = $AsJson.IsPresent
Multiline = $Multiline.IsPresent
}
diff --git a/src/Templates/Public/scripts/default.js b/src/Templates/Public/scripts/default.js
index 0f836a03..95516192 100644
--- a/src/Templates/Public/scripts/default.js
+++ b/src/Templates/Public/scripts/default.js
@@ -409,7 +409,7 @@ function setupSteppers() {
btn = stepper.find('.bs-stepper-content .bs-stepper-pane.active button.step-submit');
}
- if (btn) {
+ if (btn && !isEnterKey(e)) {
btn.trigger('click');
}
});
@@ -2795,6 +2795,9 @@ function updateTextbox(action) {
}
txt.val(action.Value);
+ if (action.Multiline && action.Size > 0) {
+ txt[0].rows = action.Size;
+ }
}
function writeTextbox(action, sender) {
diff --git a/src/Templates/Views/elements/textbox.pode b/src/Templates/Views/elements/textbox.pode
index 143d25ce..03ac74ad 100644
--- a/src/Templates/Views/elements/textbox.pode
+++ b/src/Templates/Views/elements/textbox.pode
@@ -31,7 +31,7 @@
$events = ConvertTo-PodeWebEvents -Events $data.Events
if ($data.Multiline) {
- $element = ""
+ $element = ""
}
else {
if ($data.Prepend.Enabled -or $data.Append.Enabled) {