laravel / nova-issues

556 stars 34 forks source link

Field Textarea is not displayed in Stack #6439

Closed proart closed 5 months ago

proart commented 5 months ago

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?

webard commented 5 months ago

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.