Skip to content

Conversation

AnshumanPadiya
Copy link
Contributor

Fixed the non-standard event.path to event.composedPath - #6426

What does this PR do?

Use of event.path was is not supported on browsers like FireFox, a simple fix here was to use the event.composedPath() method

Where should the reviewer start?

Line 262 in DropContainer.js

What testing has been done on this PR?

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • userEvent is used in place of fireEvent.
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

#6426

Screenshots (if appropriate)

grommet_composedPathLog

Do the grommet docs need to be updated?

Up to the maintainers to decide.

Should this PR be mentioned in the release notes?

Is this change backwards compatible or is it a breaking change?

Copy link
Collaborator

@jcfilben jcfilben left a comment

Choose a reason for hiding this comment

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

Looks good!

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