Skip to content

Commit

Permalink
Core: Autocomplete - tweak view lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Jul 19, 2019
1 parent 2a7045f commit 3d8322c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/autocomplete/autocomplete-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Autocomplete extends Framework7Class {
view = ac.params.view;
} else if ($openerEl || $inputEl) {
const $el = $openerEl || $inputEl;
view = $el.parents('.view').length && $el.parents('.view')[0].f7View;
view = $el.closest('.view').length && $el.closest('.view')[0].f7View;
}
if (!view) view = app.views.main;

Expand Down

0 comments on commit 3d8322c

Please sign in to comment.