GetStream / react-activity-feed

Stream React Activity Feed Components
https://getstream.io/react-activity-feed/
BSD 3-Clause "New" or "Revised" License
137 stars 83 forks source link

Illegal invocation fix #310

Closed arnautov-anton closed 3 years ago

arnautov-anton commented 3 years ago

Clicking on Textarea component triggers onChange event (for some unknown reason) and trying to access event.currentTarget from that event object will crash an application this SDK is running in as accessing it is an "illegal invocation". event.target is "safe" and does not seem to trigger this error so I implemented switch that'll try to access target first thus preventing this error from popping up.

github-actions[bot] commented 3 years ago

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/index.js 217.75 KB (+0.04% 🔺) 4.4 s (+0.04% 🔺) 487 ms (+5.8% 🔺) 4.9 s
dist/index.css 8.17 KB (0%) 164 ms (0%) 0 ms (+100% 🔺) 164 ms