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

fix: resolve an issue where linked data that cannot be dropped on was not allowed to drop #5175

Conversation

janechu
Copy link
Collaborator

@janechu janechu commented Sep 9, 2021

Pull Request

📖 Description

This change adds the linked data type corresponding to linked data that typically includes elements such as <img /> and <input /> which do not contain content to a list of items that now allow it to be dropped.

👩‍💻 Reviewer Notes

Build and run Creator application and add an img element, and another container element such as div, then attempt to drag the img into the div. This should now be possible.

📑 Test Plan

As part of the drag and drop core functionality, this is untestable in unit tests.

✅ Checklist

General

  • I have included a change request file using $ yarn change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

@janechu janechu merged commit 5e6fa77 into master Sep 9, 2021
@janechu janechu deleted the users/janechu/fix-drag-and-drop-missing-linked-data-undroppables branch September 9, 2021 23:22
robarbms pushed a commit that referenced this pull request Sep 15, 2021
… not allowed to drop (#5175)

# Pull Request

## 📖 Description

<!---
Provide some background and a description of your work.
What problem does this change solve?
Is this a breaking change, chore, fix, feature, etc?
-->
This change adds the linked data type corresponding to linked data that typically includes elements such as `<img />` and `<input />` which do not contain content to a list of items that now allow it to be dropped.

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.

Do you recommend a smoke test for this PR? What steps should be followed?
Are there particular areas of the code the reviewer should focus on?
-->
Build and run Creator application and add an `img` element, and another container element such as `div`, then attempt to drag the `img` into the `div`. This should now be possible.

## 📑 Test Plan

<!---
Please provide a summary of the tests affected by this work and any unique strategies employed in testing the features/fixes.
-->
As part of the drag and drop core functionality, this is untestable in unit tests.

## ✅ Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [x] I have included a change request file using `$ yarn change`
- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.
- [x] I have read the [CONTRIBUTING](https://github.com/Microsoft/fast/blob/master/CONTRIBUTING.md) documentation and followed the [standards](https://www.fast.design/docs/community/code-of-conduct/#our-standards) for this project.
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

Successfully merging this pull request may close these issues.

3 participants