mcgilman commented on a change in pull request #5559:
URL: https://github.com/apache/nifi/pull/5559#discussion_r759531704
##########
File path:
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/propertytable/jquery.propertytable.js
##########
@@ -1763,13 +1771,26 @@
var propertyHistory = history[property];
// format the tooltip
- var tooltip =
nfCommon.formatPropertyTooltip(propertyDescriptor, propertyHistory);
+ var propertyTooltip =
nfCommon.formatPropertyTooltip(propertyDescriptor, propertyHistory);
- if (nfCommon.isDefinedAndNotNull(tooltip)) {
+ if (nfCommon.isDefinedAndNotNull(propertyTooltip)) {
infoIcon.qtip($.extend({},
nfCommon.config.tooltipConfig,
{
- content: tooltip
+ content: propertyTooltip
+ }));
+ }
+ }
+
+ var whitespaceIcon = $(this).find('div.fa-info');
+ if (whitespaceIcon.length && !whitespaceIcon.data('qtip')) {
+ var whitespaceTooltip = nfCommon.formatWhitespaceTooltip();
+
+ if (nfCommon.isDefinedAndNotNull(whitespaceTooltip)) {
+ whitespaceIcon.qtip($.extend({},
Review comment:
Tooltips from qtip should be manually cleaned up to avoid a dom leak. If
you open up DevTools and show one of these new tooltips, close the
configuration dialog, open the configuration dialog, and show another one of
these new tooltips you can see at the bottom of the dom elements we continually
add new qtip content.
In this case, you can address these by updating the `clear` function to also
clean up `div.fa-info`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]