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

Incremental click event listeners amount #78

Open
nikaivan opened this issue May 29, 2017 · 0 comments
Open

Incremental click event listeners amount #78

nikaivan opened this issue May 29, 2017 · 0 comments

Comments

@nikaivan
Copy link

Hello,

We're implementing ngwysiwyg on an AngularJS project that uses angular-material.

Angular material has a feature that allow us to split the content on different tabs. Related to this, we found a problem when using ngwysiyg inside a tab.

In file wysiwygEdit.js line 21, is defined an onclick event listener, that fires "NGP_EVENTS.CLICK_AWAY" function, whose functionality is to hide symbols dialog when the users click outside the dialog.

That event listener is created every time the user changes from one tab to another, resulting in an incremental number of event listeners, and in a huge lag, and in some cases in the freeze of the internet browser.

Temporary we've commented NGP_EVENTS.CLICK_AWAY listener creation, for fixing it!

Regards.

@nikaivan nikaivan changed the title Unlimited event listeners are being created on tab change Incremental click event listeners amount May 29, 2017
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

1 participant