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

Textarea upload - Cannot read property 'drop' of undefined #2482

Closed
yoanmalie opened this issue Mar 3, 2020 · 1 comment
Closed

Textarea upload - Cannot read property 'drop' of undefined #2482

yoanmalie opened this issue Mar 3, 2020 · 1 comment

Comments

@yoanmalie
Copy link

@yoanmalie yoanmalie commented Mar 3, 2020

Describe the bug
When uploading a file with drag and drop on a textarea, with the uploads option disabled I get this error :

On Chrome :

Cannot read property 'drop' of undefined

On Firefox :

this.$refs.fileUpload is undefined

EDIT: Not tested elsewhere.

To Reproduce
Here my blueprint :

fields:
  address:
    label: Adresse
    type: textarea
    buttons: false
    counter: false
    icon: home
    spellcheck: false
    uploads: false

Expected behavior
A clear information that we can't upload here because the feature it's disabled on this field. Without error log.

Kirby Version
3.3.4

Console output
On Chrome :

TypeError: Cannot read property 'drop' of undefined
    at a.onDrop (app.js:1)
    at oe (vendor.js:41)
    at HTMLTextAreaElement.n (vendor.js:41)
    at HTMLTextAreaElement.Ni.i._wrapper (vendor.js:41)
errorCaptured @ app.js:1

On Firefox :

TypeError: "this.$refs.fileUpload is undefined"
    onDrop http://example.com/media/panel/05181df89a02def7a50270e532e61bbf/js/app.js:1
    oe http://example.com/media/panel/05181df89a02def7a50270e532e61bbf/js/vendor.js:41
    n http://example.com/media/panel/05181df89a02def7a50270e532e61bbf/js/vendor.js:41
    _wrapper http://example.com/media/panel/05181df89a02def7a50270e532e61bbf/js/vendor.js:41

Desktop:

  • OS: macOS
  • Browser: Firefox
  • Version: 72.0.2

Also tested on Chrome 79.0.3945.130

@afbora afbora self-assigned this Mar 3, 2020
@afbora afbora added this to the 3.3.5 milestone Mar 3, 2020
afbora added a commit that referenced this issue Mar 3, 2020
@afbora afbora mentioned this issue Mar 3, 2020
3 of 4 tasks complete
@afbora afbora linked a pull request that will close this issue Mar 3, 2020
3 of 4 tasks complete
bastianallgeier added a commit that referenced this issue Mar 5, 2020
@bastianallgeier

This comment has been minimized.

Copy link
Contributor

@bastianallgeier bastianallgeier commented Mar 5, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.