webscopeio / react-textarea-autocomplete

📝 React component implements configurable GitHub's like textarea autocomplete.
MIT License
454 stars 80 forks source link

Possible IE issue with an Event object #64

Closed jvorcak closed 6 years ago

jvorcak commented 6 years ago

I'm trying to create a higher abstraction on top of this awesome plugin. Something not that low level - OOTB solution with support for emojis & markdown.

However, in IE I experience this issue.

Steps to reproduce: 1) Clone https://github.com/webscopeio/react-markdown-editor 2) yarn && yarn start 3) In a second terminal, cd example && yarn && yarn start 4) Open page in IE11

I've included babel-polyfill in my example project.

bug

jukben commented 6 years ago

We are using Babel preset from CRA https://github.com/facebook/create-react-app/tree/next/packages/babel-preset-react-app

Object.entries is not polyfilled by default and it should be polyfilled manually. https://github.com/facebook/create-react-app/issues/1856

But babel-polyfill should be enough to do so. How did you include it?

EDIT: Closing for now, but let's continue the discussion if need any.