Fix Display._definitionTextScanner not ignoring certain elements (#1153)
This commit is contained in:
parent
abc017545c
commit
9dd2a9c98e
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user