Merge pull request #3942 from codyrancher/jq

Fixing a jquery usage error
This commit is contained in:
Westly Wright 2020-04-27 14:05:33 -07:00 committed by GitHub
commit d0d790681a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)