mask template tag title popup when preview is disabled (#1995)

This commit is contained in:
Alfonso Ruzafa authored and GitHub committed 2020-03-12 16:00:11 -07:00
1 parent 7aae21154a
commit 39c73e17c5
1 file changed
+2 -1
@@ -268,7 +268,8 @@ async function _updateElementText(render, mark, text, renderContext, isVariableU
} else {
innerHTML = tagDefinition.displayName || tagData.name;
}
title = await render(text);
const preview = await render(text);
title = tagDefinition.disablePreview(tagData.args) ? preview.replace(/./g, '*') : preview;
} else {
innerHTML = cleanedStr;
title = 'Unrecognized tag';