diff --git a/lib/alert/addon/components/alert-select/component.js b/lib/alert/addon/components/alert-select/component.js index 366aaa21d..cddbdbb0b 100644 --- a/lib/alert/addon/components/alert-select/component.js +++ b/lib/alert/addon/components/alert-select/component.js @@ -20,7 +20,7 @@ export default Select.extend({ return; } - const toBottom = $('body').height() - $($()[0]).offset().top - 60; // eslint-disable-line + const toBottom = $('body').height() - $(this.element).offset().top - 60; // eslint-disable-line set(this, 'maxHeight', toBottom < MAX_HEIGHT ? toBottom : MAX_HEIGHT)