Skip to content

Commit

Permalink
fix(glass-easel-miniprogram-webpack-plugin): fix onEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
Tidyzq committed Nov 16, 2023
1 parent b7e8616 commit 7742f82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions glass-easel-miniprogram-webpack-plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,7 @@ class GlassEaselMiniprogramWebpackPlugin {
exports.env = env
var backend = new glassEasel.CurrentWindowBackendContext()
backend.onEvent((target, type, detail, options) => {
let cur = target
while (cur && !cur.__wxElement) cur = cur.parentNode
if (!cur) return
glassEasel.triggerEvent(target.__wxElement, type, detail, options)
glassEasel.triggerEvent(target, type, detail, options)
})
var ab = env.associateBackend(backend)
;(${params.styleSheetManager.toCodeString()})(ab)
Expand Down

0 comments on commit 7742f82

Please sign in to comment.