Commit 8010c010 authored by Johann-S's avatar Johann-S Committed by XhmikosR
Browse files

fix(event-handler): use Object.key for passing values in an event

parent a1cc9a6e
5 merge requests!31948Examples/Floating-labels: fix bad behavior with autofill,!30064test,!29779Responsive sizing,!28882fix custom-select-indicator in IE10,!28721Hot test
Showing with 8 additions and 1 deletion
+8 -1
......@@ -281,7 +281,14 @@ const EventHandler = (() => {
// merge custom informations in our event
if (typeof args !== 'undefined') {
evt = Object.assign(evt, args)
Object.keys(args)
.forEach((key) => {
Object.defineProperty(evt, key, {
get() {
return args[key]
}
})
})
}
if (defaultPrevented) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment