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

EZP-31697: Added remove tooltip when removed node is diffrenty than .… #1420

Merged
merged 2 commits into from Jul 6, 2020

Conversation

lucasOsti
Copy link
Contributor

Question Answer
Tickets https://jira.ez.no/browse/EZP-31697
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? no
Doc needed? no
License GPL-2.0

Improved tooltip removal. Previously the tooltip was removed if any node was deleted and now I delete it when I delete a node other than .ez-tooltip

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@@ -39,6 +49,10 @@
<div class="tooltip-inner ez-tooltip__inner"></div>
</div>`,
});

$(tooltipNode).on('inserted.bs.tooltip', (event) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is after the tooltip is set it will be undefined on first time the tooltip is added?

});
if (removedNodes.length) {
removedNodes.forEach((removedNode) => {
if (removedNode.classList && !removedNode.classList.contains('ez-tooltip')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this removedNode.classList needed? classList is DOM property so it should always exist

@lucasOsti lucasOsti requested a review from GrabowskiM July 3, 2020 10:05
@lserwatka lserwatka merged commit 52ea0c3 into ezsystems:master Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants