src/plugins/submenu.js
function setSelectable(item) {
            if (item.children) {
                item.children.forEach(setSelectable);
            }
            if (item.submenu) {
                item.selectable = !!item.selectable;
            }
        }
function setSelectable(item) {
            if (item.children) {
                item.children.forEach(setSelectable);
            }
            if (item.submenu) {
                item.selectable = !!item.selectable;
            }
        }
function setSelectable ( item ) { if ( item . children ) { item . children . forEach ( setSelectable ) ; } if ( item . submenu ) { item . selectable = ! ! item . selectable ; } }
makes sure any result item with a submenu that's not explicitly set as selectable becomes unselectable
makes sure any result item with a submenu that s not explicitly set as selectable becomes unselectable