You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is not enough place below the input field, the list with the suggestions is correctly placed above the input field. While typing, the list shrinks, but the top left position keeps its place, so there is a growing gap between the list and the input field.
This can be easily overcome by calling update after the open command on line 104.
this.off('keyup.autocomplete').keyup('keyup.autocomplete', function () {
if (createItems(_field, opts) > 0) {
_field.dropdown('show');
_field.dropdown('update'); // <--- This updates the position of the list
}
The text was updated successfully, but these errors were encountered:
martinstoeckli
changed the title
Reposition list when items are shown above input.
Reposition list when items are shown above input field
Nov 8, 2021
When there is not enough place below the input field, the list with the suggestions is correctly placed above the input field. While typing, the list shrinks, but the top left position keeps its place, so there is a growing gap between the list and the input field.
This can be easily overcome by calling
update
after theopen
command on line 104.The text was updated successfully, but these errors were encountered: