Skip to content

Commit

Permalink
fix: 修改processEventReact needBind判断逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackgan3 committed Dec 9, 2024
1 parent d057992 commit b4cd52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/template-compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ function processEventReact (el) {
for (const type in eventConfigMap) {
const { configs } = eventConfigMap[type]
if (!configs.length) continue
const needBind = configs.length > 1 || configs[0].hasArgs
const needBind = configs.length > 1 || configs[0].hasArgs || tagRE.test(configs[0].value)
if (needBind) {
configs.forEach(({ name }) => {
if (name) {
Expand Down

0 comments on commit b4cd52a

Please sign in to comment.