From 3d8322c7b5da52db8326827d7b2ec2110b559b66 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Fri, 19 Jul 2019 10:45:36 +0300 Subject: [PATCH] Core: Autocomplete - tweak view lookup --- src/core/components/autocomplete/autocomplete-class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/components/autocomplete/autocomplete-class.js b/src/core/components/autocomplete/autocomplete-class.js index 51d376c665..aee9c6e9d8 100644 --- a/src/core/components/autocomplete/autocomplete-class.js +++ b/src/core/components/autocomplete/autocomplete-class.js @@ -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;