aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index 65cc579f..1142f36f 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -806,7 +806,10 @@ class Display extends EventDispatcher {
this._tagNotification = new DisplayNotification(this._footerNotificationContainer, node);
}
- const content = this._displayGenerator.createTagFooterNotificationDetails(tagNode);
+ const index = this._getClosestDefinitionIndex(tagNode);
+ const dictionaryEntry = (index >= 0 && index < this._definitions.length ? this._definitions[index] : null);
+
+ const content = this._displayGenerator.createTagFooterNotificationDetails(tagNode, dictionaryEntry);
this._tagNotification.setContent(content);
this._tagNotification.open();
}