File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ function Update-PodeWebTextbox
516
516
517
517
[Alias (' Height' )]
518
518
[int ]
519
- $Size = 4 ,
519
+ $Size = 0 ,
520
520
521
521
[Parameter ()]
522
522
[switch ]
@@ -540,10 +540,6 @@ function Update-PodeWebTextbox
540
540
$items = ($items | Out-String )
541
541
}
542
542
543
- if ($Size -le 0 ) {
544
- $Size = 4
545
- }
546
-
547
543
return @ {
548
544
Operation = ' Update'
549
545
ObjectType = ' Textbox'
Original file line number Diff line number Diff line change @@ -2795,7 +2795,7 @@ function updateTextbox(action) {
2795
2795
}
2796
2796
2797
2797
txt . val ( action . Value ) ;
2798
- if ( Number . isInteger ( action . Size ) ) {
2798
+ if ( action . Multiline && action . Size > 0 ) {
2799
2799
txt [ 0 ] . rows = action . Size ;
2800
2800
}
2801
2801
}
Original file line number Diff line number Diff line change 31
31
$events = ConvertTo-PodeWebEvents -Events $data.Events
32
32
33
33
if ($data.Multiline) {
34
- $element = "<textarea class='form-control $(if ($data.NoForm) { 'no-form' })' id='$($data.ID)' name='$($data.Name)' pode-object='$($data.ObjectType)' placeholder='$($data.Placeholder)' rows='$($data.Size)' style='$($width) $($data.CssStyles)' $($describedBy) $($readOnly) $($required) $($value) $($ events)>$($data.Value)</textarea>"
34
+ $element = "<textarea class='form-control $(if ($data.NoForm) { 'no-form' })' id='$($data.ID)' name='$($data.Name)' pode-object='$($data.ObjectType)' placeholder='$($data.Placeholder)' rows='$($data.Size)' style='$($width) $($data.CssStyles)' $($describedBy) $($readOnly) $($required) $($events)>$($data.Value)</textarea>"
35
35
}
36
36
else {
37
37
if ($data.Prepend.Enabled -or $data.Append.Enabled) {
You can’t perform that action at this time.
0 commit comments