Skip to content

Layer should use event.composedPath() instead of event.path #6452

@jcfilben

Description

@jcfilben

Expected Behavior

Clicking outside of Layer shouldn't result in errors in Firefox

Actual Behavior

Clicking outside of a Layer in Firefox isn't working well because event.path isn't supported in Firefox

URL, screen shot, or Codepen exhibiting the issue

https://codesandbox.io/s/grommet-v2-template-forked-08rqb3?file=/index.js

Steps to Reproduce

  1. Open codesandbox example
  2. Click Open Layer button

Your Environment

  • Grommet version: 2.27.0
  • Browser Name and version: Firefox
  • Operating System and version (desktop or mobile):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissue that does not match design or documentation and requires code changes to addressgood first issueA good one to work on if you are just getting started with grommethacktoberfestPRs submitted in October (open-source celebration month)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions