Skip to content

Commit

Permalink
Merge pull request #1510 from didi/fix-wx-model-input
Browse files Browse the repository at this point in the history
fix: modelEvent & mpxModel 触发顺序
  • Loading branch information
hiyuki authored Jun 20, 2024
2 parents e4cbac3 + d3923c3 commit d608381
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function processModel (listeners, context) {
if (modelEvent) {
// 对于modelEvent,内部获得时间后向外部转发,触发外部listener的同时转发为mpxModel事件
listeners[modelEvent] = function (e) {
context.$emit(modelEvent, e)
context.$emit('mpxModel', e)
context.$emit(modelEvent, e)
}
// 内部listener不需要mpxModel
delete listeners.mpxModel
Expand Down

0 comments on commit d608381

Please sign in to comment.