You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this plugin in a Vue environment, occasionally I'll receive an error of "Cannot read properties of null (reading 'file')" when the component using FilePond is destroyed. This only occurs when a file has been added to FilePond.
I've traced the error to line 142 of filepond-plugin-image-overlay.js: if (!isImage(item.file) || root.rect.element.hidden) return;
I'm not sure what createRoute (line 134) is doing, but perhaps the solution is to return if item is falsy? In my testing that works, but not sure if that has any repercussions.
Potential fix
filepond-plugin-image-overlay.js, line 142 if (!item || !isImage(item.file) || root.rect.element.hidden) return;
The text was updated successfully, but these errors were encountered:
When using this plugin in a Vue environment, occasionally I'll receive an error of "Cannot read properties of null (reading 'file')" when the component using FilePond is destroyed. This only occurs when a file has been added to FilePond.
I've traced the error to line 142 of filepond-plugin-image-overlay.js:
if (!isImage(item.file) || root.rect.element.hidden) return;
I'm not sure what
createRoute
(line 134) is doing, but perhaps the solution is to return ifitem
is falsy? In my testing that works, but not sure if that has any repercussions.Potential fix
filepond-plugin-image-overlay.js, line 142
if (!item || !isImage(item.file) || root.rect.element.hidden) return;
The text was updated successfully, but these errors were encountered: