laravel/nova-issues

Field Textarea is not displayed in Stack

proart opened this issue · 1 comments

  • Laravel Version: 8.83.27
  • Nova Version: 4.33.2
  • PHP Version: 8.1

Description:

Hi,
Nova doesn't display "Textarea" field in "Stack" field on "Details" page:

Detailed steps to reproduce the issue on a fresh Nova installation:

Put this method in some resource and check details page.

use Laravel\Nova\Fields\Stack;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Textarea;
use Laravel\Nova\Http\Requests\NovaRequest;

// ...

public function fieldsForDetail(NovaRequest $request)
{
    return [
        Stack::make('Stack field', [
            Text::make('test 0', fn() => 'text field 0'),

            Textarea::make('test TEXAREA', fn() => '!!! WHERE IS THIS TEXT? !!!')->alwaysShow(),

            Text::make('test 1', fn() => 'text field 1'),

            Text::make('test 2', fn() => 'text field 2'),
        ])
    ];
}

Result:
image

How to display the field Textarea?

I think Textarea is not meant to be in Stack field. It's main use case is to organize data in table, where textarea is hidden too.