emoji-picker-react icon indicating copy to clipboard operation
emoji-picker-react copied to clipboard

It Crashes on Safari Version 12.0.3

Open zulqarnainhanif opened this issue 4 years ago • 3 comments

The packages works fine on safari version 13.1 but it crashes on older versions like 12.0.3. I am attaching a screenshot below for the error i get in the console.

Screenshot 2020-09-17 at 2 16 50 PM

zulqarnainhanif avatar Sep 17 '20 11:09 zulqarnainhanif

Interesting. Can you confirm that this indeed comes from the package itself? If so, do you know where and when exactly it happens? Because this looks to have come from a minified bundle, and I have no idea what's going on in there.

ealush avatar Sep 21 '20 21:09 ealush

Get this error as soon as we try to render the emoji picker.

Screenshot 2020-09-22 at 12 03 49 PM

zulqarnainhanif avatar Sep 22 '20 07:09 zulqarnainhanif

This is because this browser doesn't have IntersectionObserver yet. I'm getting the same error while running tests:

    TypeError: Cannot read property 'disconnect' of null <------ SEE?

      29 |
      30 | const getComp = () => {
    > 31 |   return render(
         |          ^
      32 |     <TestProvider store={setupStore({}, { chatV2: chatReducer })}>
      33 |       <ChatInput />
      34 |     </TestProvider>,

      at node_modules/emoji-picker-react/dist/webpack:/EmojiPicker/src/hooks/useIntersectionObserver.js:63:22

zaguiini-remo avatar Jan 20 '21 18:01 zaguiini-remo