From f74b19b2affa1451dfcc05aba82b96fe587de2d9 Mon Sep 17 00:00:00 2001
From: Alexandre Iooss <erdnaxe@crans.org>
Date: Mon, 10 Aug 2020 14:45:17 +0200
Subject: [PATCH] Fix autocompletion popup flipping direction

---
 note_kfet/static/js/base.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/note_kfet/static/js/base.js b/note_kfet/static/js/base.js
index f8b7d50f..6473a037 100644
--- a/note_kfet/static/js/base.js
+++ b/note_kfet/static/js/base.js
@@ -209,7 +209,8 @@ function autoCompleteNote(field_id, note_list_id, notes, notes_display, alias_pr
         placement: 'bottom',
         title: 'Loading...',
         trigger: 'manual',
-        container: field.parent()
+        container: field.parent(),
+        fallbackPlacement: 'clockwise'
     });
 
     // Clear search on click
-- 
GitLab