Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field Textarea is not displayed in Stack #6439

Closed
proart opened this issue Jun 24, 2024 · 1 comment
Closed

Field Textarea is not displayed in Stack #6439

proart opened this issue Jun 24, 2024 · 1 comment

Comments

@proart
Copy link

proart commented Jun 24, 2024

  • 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?

@webard
Copy link

webard commented Jun 24, 2024

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.

@laravel laravel locked and limited conversation to collaborators Jun 25, 2024
@crynobone crynobone converted this issue into discussion #6442 Jun 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants