airbnb / goji-js

React ❤️ Mini Program
https://goji.js.org
MIT License
224 stars 27 forks source link

Case-sensitivity problem on `event.timeStamp` on WeChat and QQ #208

Closed malash closed 1 year ago

malash commented 1 year ago

What happened

During using <textarea> component I meet a warning of GojiJS and input event not work at all.

image

After a deep dive, I found that some events, like bindinput on <input> and <textarea>, use event.timestamp instead of standard event.timeStamp. There is a similar user report in WeChat official forum.

Reproduction

WeChat: https://developers.weixin.qq.com/s/PevNWNm57qJ7

QQ: bad-case-qq-event.zip

malash commented 1 year ago

Reported this issue to the WeChat official forum https://developers.weixin.qq.com/community/develop/doc/000e40d139c6502eb3000a07161800