react-hammerjs
react-hammerjs copied to clipboard
Uncaught TypeError on load
Hello, when loading the page I get a type error:
This references:
I have tried verifying this.actions is a string, but no luck. Is there any reason why I am getting this error? I would assume that it's something I just am overlooking. Thanks!
Sorry @DClark5218, not sure why that's happening. Can you put a complete example up somewhere so I can replace it?
@JedWatson I appreciate it. I've been playing with some different stuff, and actually realized that the reason it's not working is because I am using React with Meteor, which is probably interfering with it.
Do you still want me to put it up on a repo so you can look at it?
After looking through this I'm realizing that if you pass in a boolean to 'touchAction' in the options prop, it will pass that boolean to line 1120 in hammer.js. By inserting a true boolean into that it will get passed into props.options on line 61, then into hammer.set in line 72. The problem is that TOUCH_ACTIONS in hammer.js only expects strings. My question then is, why is touchAction: true a valid key/value pair in the first place on your example?