File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ function Update-PodeWebTextbox
516516
517517 [Alias (' Height' )]
518518 [int ]
519- $Size = 4 ,
519+ $Size = 0 ,
520520
521521 [Parameter ()]
522522 [switch ]
@@ -540,10 +540,6 @@ function Update-PodeWebTextbox
540540 $items = ($items | Out-String )
541541 }
542542
543- if ($Size -le 0 ) {
544- $Size = 4
545- }
546-
547543 return @ {
548544 Operation = ' Update'
549545 ObjectType = ' Textbox'
Original file line number Diff line number Diff line change @@ -2795,7 +2795,7 @@ function updateTextbox(action) {
27952795 }
27962796
27972797 txt . val ( action . Value ) ;
2798- if ( Number . isInteger ( action . Size ) ) {
2798+ if ( action . Multiline && action . Size > 0 ) {
27992799 txt [ 0 ] . rows = action . Size ;
28002800 }
28012801}
Original file line number Diff line number Diff line change 3131 $events = ConvertTo-PodeWebEvents -Events $data.Events
3232
3333 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>"
3535 }
3636 else {
3737 if ($data.Prepend.Enabled -or $data.Append.Enabled) {
You can’t perform that action at this time.
0 commit comments