dcloudio / dcloudio/uni-app

@input绑定的事件 告警群总是报undefined

Open
#1,684 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

`

methods:{
inputChange(e){
this.$emit('input',e.target.value)
}
}
`
线上的input 事件绑定的方法 报警群总是报undefined 开发时却遇不到 一脸懵逼

![1589543636(1)](https://user-images.githubusercontent.com/30165374/82047794-02b0b100-96e6-11ea-81c2-8631495e3bae.png)
![1589543656(1)](https://user-images.githubusercontent.com/30165374/82047800-047a7480-96e6-11ea-88bd-8c09850379d7.png)

Contributor guide

Open the contributing guide

Research direction

Start with the reported and its inputChange handler, then reproduce the production-only path that produces an undefined event. Check the event behavior at the component boundary and add a regression case once the failing path is isolated. Done means the warning no longer occurs and normal input values are emitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.