updated dropdown typeahead to place down instead of up, works better when inside scrollable area

This commit is contained in:
Torkel Ödegaard 2018-12-17 13:08:09 +01:00
parent 7455dfcc84
commit 1ac81c3ad0

View File

@ -12,7 +12,7 @@ export function dropdownTypeahead($compile) {
const buttonTemplate = const buttonTemplate =
'<a class="gf-form-label tight-form-func dropdown-toggle"' + '<a class="gf-form-label tight-form-func dropdown-toggle"' +
' tabindex="1" gf-dropdown="menuItems" data-toggle="dropdown"' + ' tabindex="1" gf-dropdown="menuItems" data-toggle="dropdown"' +
' data-placement="top"><i class="fa fa-plus"></i></a>'; ' ><i class="fa fa-plus"></i></a>';
return { return {
scope: { scope: {
@ -130,7 +130,7 @@ export function dropdownTypeahead2($compile) {
const buttonTemplate = const buttonTemplate =
'<a class="gf-form-input dropdown-toggle"' + '<a class="gf-form-input dropdown-toggle"' +
' tabindex="1" gf-dropdown="menuItems" data-toggle="dropdown"' + ' tabindex="1" gf-dropdown="menuItems" data-toggle="dropdown"' +
' data-placement="top"><i class="fa fa-plus"></i></a>'; ' ><i class="fa fa-plus"></i></a>';
return { return {
scope: { scope: {