Эх сурвалжийг харах

Fix 修复事件绑定只触发一次不起作用的问题

YueYunyun 2 жил өмнө
parent
commit
c1c46d2f3b

+ 1 - 1
UI/VAP.VUE/src/core/vb-dom/_utils/EventHandlerUtil.ts

@@ -111,7 +111,7 @@ export class EventHandlerUtil {
 				const handler = EventHandlerUtil.store[name][handlerId]
 				if (handler.name === name) {
 					if (handler.one) {
-						if (handler.fired) {
+						if (!handler.fired) {
 							EventHandlerUtil.store[name][handlerId].fired = true
 							eventValue = handler.callback.call(this, target)
 						}