-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
iFrame click events not firing #7579
Comments
I am having the same issue as the poster with the click events not triggering, the others are working as expected. |
+1 |
Looks like the problem is in Rocket.Chat/packages/rocketchat-ui-master/client/main.js:
Both
which is also returning false. All three of these checks should be true, which would result in:
but as it stands it never gets there to send the message, and instead the message is propagated and the browser just does its thing (opens link in new tab). Perhaps |
still an issue on the latest version |
Fixed in #16771 |
Description:
Click events are not triggered from Rocket.Chat when iFrame integration is enabled.
The other events (notification, room-opened, new-message, etc.) work as expected.
Server Setup Information:
Steps to Reproduce:
window.addEventListener('message', function(e) {
console.log(e.data.eventName); // event name
console.log(e.data.data); // event data
});
Expected behavior:
The event listener is fired with a "click-message-link" eventName (or action/mention/user-card) and associated event data.
Actual behavior:
The event listener is not triggered.
Other:
Chrome Version 59.0.3071.115 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: