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

Stop errors #264

Merged
merged 2 commits into from
Nov 19, 2020
Merged

Stop errors #264

merged 2 commits into from
Nov 19, 2020

Conversation

91bananas
Copy link
Contributor

Not sure if this is the best way to do this, but I have a situation where we use magic suggest to capture a click event within the magic suggest ui, then do an action from our app. This global listener on body is then throwing errors on the first click after the click in magic suggest. There is no guarantee that e.target is a string as far as I can tell. It would seem to me a $('body').on(someNamespacedEventThatCouldBeCleanedUp, 'click') would be a better approach possibly? I can get you a video of what is happening but it'd take me some work since we're using this in a non-public setting. Thank you

Not sure if this is the best way to do this, but I have a situation where we use magic suggest to capture a click event within the magic suggest ui, then do an action from our app. This global listener on body is then throwing errors on the first click after the click in magic suggest. There is no guarantee that `e.target` is a string as far as I can tell. It would seem to me a `$('body').on(someNamespacedEventThatCouldBeCleanedUp, 'click')` would be a better approach possibly?
@zergioz zergioz merged commit f612cc5 into Magicsuggest:master Nov 19, 2020
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

Successfully merging this pull request may close these issues.

2 participants