jd-opensource / jd-opensource/taro-ui

微信升级8.0后,AtInput组件输入时有报错

Open
#1,296 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
使用AtInput组件,在输入内容的时候或是聚焦的时候,控制台报错了

**复现步骤**
在微信升级到8版本后,AtInput组件输入的时候就出现报错信息,感觉是微信原生input组件需要onInput事件,而AtInput没有此事件提供给用户

**期望行为**
希望做出解决报错的方案

**报错信息**
MiniProgramError
Cannot read property 'apply' of undefined
TypeError: Cannot read property 'apply' of undefined
at AtInput.funPrivatezfieG (app-service.js:33295:48)
at ut.obj. [as funPrivatezfieG] (app-service.js:16280:36)
at ut.R (WASubContext.js:2:2345051)
at ct (WASubContext.js:2:2364148)
at at (WASubContext.js:2:2383800)
at Function. (WASubContext.js:2:2384195)
at Object.webviewEventCallback (WASubContext.js:2:2343964)
at V (WASubContext.js:2:1076385)
at at (WASubContext.js:2:1076148)
at Array.forEach ()

**系统信息**

![image](https://user-images.githubusercontent.com/27654125/106836619-79f2fe80-66d4-11eb-9c0f-422901a2e0b9.png)

**补充信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.