prestaconcept / PrestaImageBundle

Allow to crop local and remote image before uploading them through a classic form.
MIT License
23 stars 19 forks source link

Problem with 'remote_url_enabled' set to false #89

Closed jravalug closed 1 year ago

jravalug commented 1 year ago

When I try to set 'remote_url_enable' => false I get the following error

Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

In cropper.js when initializeRemoteUrlEvents() is called, the first thing it does is check the status of the input, but setting 'remote_url_enable' => false doesn't render the 'widget-remote-url' and thus creates the error .