marinosoftware / active_storage_drag_and_drop

Provides a form helper to make it easy to make drag-and-drop file upload fields that work with Rails' Active Storage.
MIT License
92 stars 14 forks source link

Title attribute on error not populated on validation error #18

Open OtherCroissant opened 4 years ago

OtherCroissant commented 4 years ago

Hi!

When I set the accept or file_size option, the validation of the selected file works fine, but I see in the DOM that there is a class added to the direct-upload container, direct-upload--error and that a Title with a explanation is set. Unfortunately, the title has the text: TypeError: Error.captureStackTrace is not a function. This does not seem right. Could you have a look?