fixup! [IMP] qweb: introduce t-model directive

This commit is contained in:
Bruno Boi
2021-11-03 11:11:18 +01:00
committed by Géry Debongnie
parent 233c953243
commit 4bdfaf96f3
4 changed files with 84 additions and 47 deletions
+2 -1
View File
@@ -18,8 +18,9 @@ export function createEventHandler(rawEvent: string): EventHandlerCreator {
}
// Native listener
let nextNativeEventId = 1;
function createElementHandler(evName: string, capture: boolean = false): EventHandlerCreator {
let eventKey = `__event__${evName}`;
let eventKey = `__event__${evName}_${nextNativeEventId++}`;
if (capture) {
eventKey = `${eventKey}_capture`;
}