diff --git a/packages/taro-quickapp/src/create-component.js b/packages/taro-quickapp/src/create-component.js index 509169036014..8465cb11f424 100644 --- a/packages/taro-quickapp/src/create-component.js +++ b/packages/taro-quickapp/src/create-component.js @@ -102,14 +102,18 @@ function processEvent (eventHandlerName, obj) { get () { return Object.assign(currentTarget || target || {}, event.detail) } - }, - stopPropagation: { - value: () => {} - }, - preventDefault: { - value: () => {} } }) + if (!event.stopPropagation) { + Object.defineProperty(event, 'stopPropagation', { + value: () => {} + }) + } + if (!event.preventDefault) { + Object.defineProperty(event, 'preventDefault', { + value: () => {} + }) + } } const scope = this.$component