Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

fixed task card open in Chrome and Firefox #3447

Merged
merged 3 commits into from
May 3, 2023

Conversation

sourabh30
Copy link
Contributor

Pull Request type

  • Bugfix

Changes in this PR

Issue #3442
Users can't click on the task at the flow diagram to open the right-side panel while using Firefox or Chrome browser.

Describe the new behavior from this PR, and why it's needed
Issue #3442 - Updated the code base to fix the task.

handleClick = (e) => {
const taskRef = e.path[1].id || e.path[2].id; // could be 2 layers down
const taskRef = this.getTaskRef(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the same comment on 3442 as it seems like this PR Addresses the same issue:

I believe this could be made simpler with event.composedPath(). Chrome recommends updating to this for the now deprecated event.path API https://chromestatus.com/feature/5726124632965120.

It also seems to be compatible with all major browsers https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath#browser_compatibility

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the fix here #3459

@github-actions
Copy link
Contributor

This PR is stale, because it has been open for 45 days with no activity. Remove the stale label or comment, or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Mar 10, 2023
@v1r3n
Copy link
Contributor

v1r3n commented Mar 13, 2023

@sourabh30 can you resolve the conflicts?

@v1r3n v1r3n removed the Stale label Mar 13, 2023
@v1r3n
Copy link
Contributor

v1r3n commented Apr 19, 2023

@sourabh30 gentle ping.

@sourabh30
Copy link
Contributor Author

@v1r3n I believe it is resolved now. Can you please check?

@v1r3n v1r3n merged commit 01c40fe into Netflix:main May 3, 2023
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants