From 9dd2a9c98e72f1e546499057d48b8bbe3c5eb330 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 21 Dec 2020 19:18:39 -0500 Subject: Fix Display._definitionTextScanner not ignoring certain elements (#1153) --- ext/mixed/js/display.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext') diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 4929cfaa..22021f5c 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -1772,6 +1772,8 @@ class Display extends EventDispatcher { searchOnClick: true, searchOnClickOnly: true }); + const excludeSelectors = ['.scan-disable', '.scan-disable *']; + this._definitionTextScanner.excludeSelector = excludeSelectors.join(','); this._definitionTextScanner.prepare(); this._definitionTextScanner.on('searched', this._onDefinitionTextScannerSearched.bind(this)); } -- cgit v1.2.3