User picker using common select componnet

This commit is contained in:
Torkel Ödegaard
2018-12-14 12:38:36 +01:00
parent 104292df63
commit 58cc2e34d6
4 changed files with 100 additions and 30 deletions

View File

@@ -111,11 +111,11 @@ function panelHeader($compile) {
*/
function togglePanelStackPosition() {
const menuOpenClass = 'dropdown-menu-open';
const panelGridClass = '.react-grid-item.panel';
const panelGridClass = '.react-grid-item';
let panelElem = elem
.find('[data-toggle=dropdown]')
.parentsUntil('.panel')
.parentsUntil(panelGridClass)
.parent();
const menuElem = elem.find('[data-toggle=dropdown]').parent();
panelElem = panelElem && panelElem.length ? panelElem[0] : undefined;