Skip to content
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

hideActiveCrop() does not work for medias form field when max is greater than 1 #2652

Open
zeezo887 opened this issue Sep 13, 2024 · 0 comments · May be fixed by #2686
Open

hideActiveCrop() does not work for medias form field when max is greater than 1 #2652

zeezo887 opened this issue Sep 13, 2024 · 0 comments · May be fixed by #2686

Comments

@zeezo887
Copy link
Collaborator

Description

hideActiveCrop() works only for a single media item but doesn't work with multiple items ->max($n) when $n > 1.

Steps to reproduce

Add a media form field to a form e.g.

$form->add(
    Medias::make()
        ->name('gallery')
        ->label('Gallery')
        ->withoutAddInfo()
        ->hideActiveCrop()
        ->max(10)
);

Expected result

The cropper for the media field is hidden in the form UI.

Actual result

The cropper for the media field is not hidden in the form UI.

Versions

Twill version: 3.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant