Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onTouchTap is not working when React component is embedded within angular app #75

Open
rdkrish opened this issue Jun 3, 2016 · 3 comments

Comments

@rdkrish
Copy link

rdkrish commented Jun 3, 2016

We are in a transition phase trying to move few modules of our angular app to react components. We are using ngReact library to embed React components into existing angular app.

If I render the independent React component in a browser, onTouchTap events work perfectly! But the same component, if I embed in the angular app, component rendering is fine, but events are not getting fired.

Any help would be deeply appreciated!

Thanks in advance!

@madjam002
Copy link

madjam002 commented Jun 3, 2016

I have never used ngReact, but I imagine it's something to do with how it wraps the React component in an Angular directive (or whatever it is).

Can you post your angular code which is rendering the React element?

Also try making sure that you're calling injectTapEventPlugin and you don't have two copies of React on the page or two different versions.

@rdkrish
Copy link
Author

rdkrish commented Jun 3, 2016

@madjam002 Thanks for the quick reply.

I have made sure that injectTapEventPlugin is called only once. As you said, I may have to look at how the ngReact module wraps the React component.

@maddrag0n
Copy link

@rdkrish I am using it with ngReact without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants