Skip to content

Commit

Permalink
fix: correct selector for current select2 results list for calculatin…
Browse files Browse the repository at this point in the history
…g max-height
  • Loading branch information
petschki committed Feb 26, 2024
1 parent 4dfebfe commit 6a51881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pat/relateditems/relateditems.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ export default Base.extend({
let yMax = window.innerHeight || document.documentElement.clientHeight;
const relitem_rect = this.el.parentElement.getBoundingClientRect();
const element = $(
".pat-relateditems-dropdown.select2-drop-active .select2-results"
"#select2-drop.pat-relateditems-dropdown.select2-drop-active .select2-results"
)[0];
const rect = element.getBoundingClientRect();
const maxHeight = ((relitem_rect.top > rect.top) ? relitem_rect.top : yMax - rect.top) - 18;
Expand Down

0 comments on commit 6a51881

Please sign in to comment.