From d28f97ff6749866ea7d4104a040b190e69eda56c Mon Sep 17 00:00:00 2001 From: Shazzb0tt Date: Wed, 29 Mar 2017 09:36:52 +1300 Subject: [PATCH] Update prefixed.js This allows gestures to be registered inside svgs in Android web views --- src/utils/prefixed.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/prefixed.js b/src/utils/prefixed.js index 9f4fd2602..f8c09d39a 100644 --- a/src/utils/prefixed.js +++ b/src/utils/prefixed.js @@ -7,6 +7,10 @@ import { VENDOR_PREFIXES } from './utils-consts'; * @returns {String|Undefined} prefixed */ export default function prefixed(obj, property) { + // This allows gestures to be registered inside svgs in Android webviews + if (!obj) { + return undefined; + } let prefix; let prop; let camelProp = property[0].toUpperCase() + property.slice(1);