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

onDragStart, onDragEnd and onDragOver won't trigger with dnd-droppable on dragging a file #257

Open
lehtiniemi opened this issue Apr 26, 2018 · 1 comment

Comments

@lehtiniemi
Copy link

  • I'm submitting a ...
    [ X ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug?
    Report a bug

  • What is the current behavior?
    When I put dnd-droppable onto a tag, the (onDropSuccess)-event triggers when I drop a file from the File Explorer onto it, but onDragStart, onDragEnd and onDragOver never trigger.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.
    -add dnd-droppable onto a html-tag
    -add (onDragStart), (onDragEnd) and (onDragOver) tags onto the tag and hook them up to some console logging
    -drag a file onto the tag from the file explorer (I don't know on mac, but it doesn't seem to trigger on Windows)

  • What is the expected behavior?
    All these events should trigger when I drag the file on the dom element and away from it, but none of them do. Only onDropSuccess triggers when I drop the file.

  • What is the motivation / use case for changing the behavior?
    I would like to monitor and change the style of the html element to encourage and inform the user that it's ok to drop the file here and thereby give further instructions in the GUI.

  • Please tell us about your environment:
    Angular CLI: 1.7.4
    Node: 9.4.0
    OS: win32 x64
    Angular: 5.2.8
    ... animations, common, compiler, compiler-cli, core, forms
    ... http, platform-browser, platform-browser-dynamic, router

@angular/cdk: 5.2.5
@angular/cli: 1.7.4
@angular/flex-layout: 5.0.0-beta.14-17a70ee
@angular/material: 5.2.5
@angular/platform-server: 5.2.10
@angular-devkit/build-optimizer: 0.4.9
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.6.2
webpack: 3.11.0

  • Browser: [Chrome 65.0.3325.181]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
@Chealer
Copy link

Chealer commented Aug 10, 2021

This may be a duplicate of ticket #195.

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