taye / taye/interact.js

Chrome raises warning "Event.path is deprecated and will be removed" when dragging and dropping elements

Open
#976 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
12.9k
Forks
804
PR merge metrics
No merged PRs in 30d

Description

Chrome raises a depreciation warning in the developer tools console when dragging and dropping elements. To reproduce, in Chrome, go to https://codepen.io/petersobczak/pen/abYGXWB, open the Developer Tools, select Console, drag and drop the top box 2 or 3 times, click on Issues in the console.

Expected behavior

No depreciation warning should be displayed in the console when using interact.js.

Actual behavior

The following message appears in the developer tools console issues:

Deprecated Feature Used
Event.path is deprecated and will be removed. Please use Event.composedPath() instead.



AFFECTED RESOURCES
1 source
interact.min.js:2

Learn more: Check the feature status page for more details.


Learn more: This change will go into effect with milestone 109.

System configuration

interact.js version: 1.10.17
Browser name and version: Chrome 104
Operating System: Mac OS

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning using the linked CodePen in Chrome 104 or later, then inspect the affected interact.min.js output and its source mapping if available. The work is done when dragging and dropping no longer produces the Event.path deprecation warning in the developer tools console.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.