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

Image preview crash browser while scrolling on an iPhone #60

Open
lam0819 opened this issue Jun 14, 2022 · 2 comments
Open

Image preview crash browser while scrolling on an iPhone #60

lam0819 opened this issue Jun 14, 2022 · 2 comments

Comments

@lam0819
Copy link

lam0819 commented Jun 14, 2022

  • ios version 15.5 ( real ios not a simulator)
  • safari or chrome

When the user uploads two or the above images, the browser scroll up and down it crashes.
Confirm that if I allowImagePreview = false, it works.

video-1655231312.mp4

I will further investigate.
Tested Fail: ios 15.5 iPhone 13 Pro, iPhone 12 Pro Max, iPhone 13 mini
Tested Success: ios 16 beta iPad

@rikschennink
Copy link
Collaborator

Hi, can you post your filepond configuration?

Additionally, can you reproduce this with a standalone test case?

@lam0819
Copy link
Author

lam0819 commented Jun 17, 2022

We are using livewire and alpinejs.
Confirm ios 15 dead on modal view.
non-modal view is fine.

We will make a standalone test case, report later.

FilePond.registerPlugin(FilePondPluginFileValidateType);
FilePond.registerPlugin(FilePondPluginImageExifOrientation);
FilePond.registerPlugin(FilePondPluginImagePreview);
FilePond.setOptions({
acceptedFileTypes: ['image/*'],
maxFiles: 6,
allowMultiple: true ,
allowImagePreview: true,
labelIdle: '<span class='filepond--label-action border border-red-primary px-3 py-2 rounded text-red-primary no-underline font-bold text-xs outline-none'>' + 'upload File' + '',
server: {
process: (fieldName, file, metadata, load, error, progress, abort, transfer, options) => {
//upload file
},
revert: (filename, load) => {
// remove file
},
remove: (source, load, error) => {
// remove payload
},
},
});
const pond = FilePond.create($refs.input);

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

No branches or pull requests

2 participants