fix firefox tags 'View Rules' bug (#5732) [deploy]
This commit is contained in:
parent
d6cdedba9a
commit
a86ccff096
1 changed files with 6 additions and 3 deletions
|
|
@ -377,6 +377,7 @@ class Tags extends Component {
|
|||
let searchResultsHTML = '';
|
||||
const { searchResults, selectedIndex, showingRulesForTag } = this.state;
|
||||
const { classPrefix, defaultValue, maxTags, listing } = this.props;
|
||||
const { activeElement } = document;
|
||||
const searchResultsRows = searchResults.map((tag, index) => (
|
||||
<div
|
||||
tabIndex="-1"
|
||||
|
|
@ -411,9 +412,11 @@ class Tags extends Component {
|
|||
));
|
||||
if (
|
||||
searchResults.length > 0 &&
|
||||
(document.activeElement.id === 'tag-input' ||
|
||||
document.activeElement.className ===
|
||||
'articleform__tagsoptionrulesbutton')
|
||||
(activeElement.id === 'tag-input' ||
|
||||
activeElement.classList.contains(
|
||||
'articleform__tagsoptionrulesbutton',
|
||||
) ||
|
||||
activeElement.classList.contains('articleform__tagoptionrow'))
|
||||
) {
|
||||
searchResultsHTML = (
|
||||
<div className={`${classPrefix}__tagsoptions`}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue