Explorar o código

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

YueYunyun %!s(int64=2) %!d(string=hai) anos
pai
achega
c1c46d2f3b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      UI/VAP.VUE/src/core/vb-dom/_utils/EventHandlerUtil.ts

+ 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)
 						}