cropper icon indicating copy to clipboard operation
cropper copied to clipboard

编辑时出现 An invalid form control with name='' is not focusable. 错误

Open tanchengjin opened this issue 4 years ago • 3 comments

添加了required()

$form->cropper('image', __('图片'))->cRatio(350,350)->required();

tanchengjin avatar Jun 12 '20 11:06 tanchengjin

添加required()之后就只能重新上传图片后才能提交

tanchengjin avatar Jun 12 '20 12:06 tanchengjin

This problem probably came with fddfccb85050a2684f57fb103c65920ee09642be, in this lines https://github.com/laravel-admin-extensions/cropper/blob/fddfccb85050a2684f57fb103c65920ee09642be/resources/views/cropper.blade.php#L8-L11 I've fixed it by simply cutting {!! attributes !!} from the first input and paste it into the second. I hope @EVA09 will make it clear, if is it OK or not.

UPD: cRatio won't work with this fix.

MamaikAn avatar Dec 26 '20 19:12 MamaikAn

have same bug

supgeek-rod avatar Aug 16 '24 20:08 supgeek-rod