-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(CDK Drag and Drop): Drag fails when dragging a div including an input with type="file" and an image #20783
Labels
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Oct 14, 2020
When we clone the dragged element to generate its preview, we transfer the values of inputs so that they look identical. The problem is that assigning the value of a `file` input will throw an error so we have to skip it. **Note:** does not include a unit test, because we can't set the of a test element programmatically. Fixes angular#20783.
annieyw
pushed a commit
that referenced
this issue
Oct 16, 2020
When we clone the dragged element to generate its preview, we transfer the values of inputs so that they look identical. The problem is that assigning the value of a `file` input will throw an error so we have to skip it. **Note:** does not include a unit test, because we can't set the of a test element programmatically. Fixes #20783.
annieyw
pushed a commit
that referenced
this issue
Oct 16, 2020
When we clone the dragged element to generate its preview, we transfer the values of inputs so that they look identical. The problem is that assigning the value of a `file` input will throw an error so we have to skip it. **Note:** does not include a unit test, because we can't set the of a test element programmatically. Fixes #20783. (cherry picked from commit 5eb1035)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
wagnermaciel
pushed a commit
to wagnermaciel/components
that referenced
this issue
Jan 14, 2021
…#20793) When we clone the dragged element to generate its preview, we transfer the values of inputs so that they look identical. The problem is that assigning the value of a `file` input will throw an error so we have to skip it. **Note:** does not include a unit test, because we can't set the of a test element programmatically. Fixes angular#20783.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-9pkfah
Steps to reproduce:
Expected Behavior
The div including the image will be dragged (and dropped) to a new position
Actual Behavior
The app crashes when trying to drag the div
Error massage Chrome and Edge:
DOMException: Failed to set the 'value' property on 'HTMLInputElement': This input element accepts a filename, which may only be programmatically set to the empty string.
Error message Firefox:
DOMException: An attempt was made to use an object that is not, or is no longer, usable
Environment
The text was updated successfully, but these errors were encountered: