Commit ec39f72902c3a64aa9841e339bd53cf60182953c
html-element: fix event handling (shouldn't be using capture)
Matt McKegg committed on 7/8/2016, 4:56:08 AMParent: a1abe9b483bc5d56548a660d97c1e2290a176d19
Files changed
lib/apply-properties.js | changed |
lib/apply-properties.js | |||
---|---|---|---|
@@ -48,12 +48,12 @@ | |||
48 | 48 … | } | |
49 | 49 … | } | |
50 | 50 … | } else if (key === 'events') { | |
51 | 51 … | for (var name in value) { | |
52 | - target.addEventListener(name, value[name], true) | ||
52 … | + target.addEventListener(name, value[name], false) | ||
53 | 53 … | } | |
54 | 54 … | } else if (key.slice(0, 3) === 'ev-') { | |
55 | - target.addEventListener(key.slice(3), value, true) | ||
55 … | + target.addEventListener(key.slice(3), value, false) | ||
56 | 56 … | } else if (key === 'className' || key === 'classList') { | |
57 | 57 … | if (Array.isArray(valueOrObs)) { | |
58 | 58 … | valueOrObs.forEach(function (v) { | |
59 | 59 … | classList.add(v) |
Built with git-ssb-web