[ticket/13713] Fix multiple dropdown issues

PHPBB3-13713
This commit is contained in:
lavigor 2018-08-14 02:47:16 +03:00 committed by Marc Alexander
parent 99e93a5a04
commit f64dbf5303
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
3 changed files with 6 additions and 6 deletions

View file

@ -1686,7 +1686,6 @@ fieldset.submit-buttons legend {
0 1px 5px 0 rgba(0, 0, 0, 0.12);
position: absolute;
z-index: 999;
overflow: auto;
transition: all 0.2s ease;
}
@ -1695,6 +1694,8 @@ fieldset.submit-buttons legend {
}
.atwho-view-ul { /* mention-list */
overflow: auto;
max-height: 200px;
margin: 0;
padding: 0;
list-style-type: none;
@ -1736,7 +1737,6 @@ svg.mention-media-avatar { /* TODO: remove it after general normalization */
overflow: hidden;
justify-content: flex-start;
align-items: center;
max-width: 300px;
padding: 16px;
cursor: pointer;
}

View file

@ -443,7 +443,7 @@ function getCaretPosition(txtarea) {
}
let cachedKeyword = getCachedKeyword(query),
cachedNamesForQuery = (cachedKeyword) ? cachedNames[cachedKeyword] : null;
cachedNamesForQuery = (cachedKeyword != null) ? cachedNames[cachedKeyword] : null;
/*
* Use cached values when we can:
@ -465,7 +465,7 @@ function getCaretPosition(txtarea) {
$.getJSON(mentionURL, params, function(data) {
cachedNames[query] = data.names;
cachedAll[query] = data.all;
callback(data);
callback(data.names);
}).always(function() {
queryInProgress = null;
});

View file

@ -18,11 +18,12 @@
border-radius: 2px;
position: absolute;
z-index: 999;
overflow: auto;
transition: all 0.2s ease;
}
.atwho-view-ul { /* mention-list */
overflow: auto;
max-height: 200px;
margin: 0;
padding: 0;
list-style-type: none;
@ -57,7 +58,6 @@ svg.mention-media-avatar { /* TODO: remove it after general normalization */
overflow: hidden;
justify-content: flex-start;
align-items: center;
max-width: 300px;
padding: 16px;
cursor: pointer;
}