Skip to content

Commit a39b700

Browse files
committed
Core: Smart select better check for required View
1 parent ca5d2ca commit a39b700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/components/smart-select/smart-select-class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SmartSelect extends Framework7Class {
3434
if (!view) {
3535
view = $el.parents('.view').length && $el.parents('.view')[0].f7View;
3636
}
37-
if (!view) {
37+
if (!view && (params.openIn === 'page' || (params.openIn !== 'page' && params.routableModals === true))) {
3838
throw Error('Smart Select requires initialized View');
3939
}
4040

0 commit comments

Comments
 (0)