You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
CodeIgniter 4 version
4.04
Affected module(s)
system/Helpers/form_helper.php
function form_textarea
lines 298 to 301
Expected behavior, and steps to reproduce if appropriate
when I create a textarea using echo form_textarea('text', set_value('text'), ['rows' => '5']); I still get 10 rows...anyway for a quick fix is to change lines 298 to 301 from this:
$defaults = [
'name' => is_array($data) ? '' : $data,
'cols' => '40',
'rows' => '10',
];
Describe the bug
A clear and concise description of what the bug is.
CodeIgniter 4 version
4.04
Affected module(s)
system/Helpers/form_helper.php
function form_textarea
lines 298 to 301
Expected behavior, and steps to reproduce if appropriate
when I create a textarea using echo form_textarea('text', set_value('text'), ['rows' => '5']);
I still get 10 rows...anyway for a quick fix is to change lines 298 to 301 from this:
$defaults = [
'name' => is_array($data) ? '' : $data,
'cols' => '40',
'rows' => '10',
];
to this:
$defaults = [
'name' => is_array($data) ? '' : $data,
'cols' => $extra['cols'] ?? '40',
'rows' => $extra['rows'] ?? '10',
];
Please consider this as I use the form helper a lot and my proposed quick-fix adds almost no overhead to system.
The text was updated successfully, but these errors were encountered: