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

Handle case when element is undefined #596

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arpowers
Copy link

This PR implements or fixes...

This prevents an error in a case when dragging elements to an empty container. In those cases, the element ends up being undefined throwing an error. I thought the easiest way to fix would be just using optional chaining.

Screenshot 2023-12-14 at 5 12 08 PM

Does this PR require the Docs to be updated?

No

Does this PR require new tests?

No

This branch been tested on... (click all that apply / add new items)

Browsers:

  • [ x] Chrome version
  • Firefox version
  • Safari version
  • IE / Edge version
  • iOS Browser version
  • Android Browser version

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.

1 participant