diff --git a/install.lua b/install.lua index 14fb66b..2a8b83b 100644 --- a/install.lua +++ b/install.lua @@ -572,7 +572,7 @@ local function installCustom(installPath, log, progressBar, selectedElements, se 'local project = {}\n', 'local loadedProject = {}\n', 'local baseRequire = require\n', - 'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end baseRequire(path) end\n' + 'require = function(path) if(project[path..".lua"])then if(loadedProject[path]==nil)then loadedProject[path] = project[path..".lua"]() end return loadedProject[path] end return baseRequire(path) end\n' } for filePath, content in pairs(project) do diff --git a/src/elements/DropDown.lua b/src/elements/DropDown.lua index 146ee12..c75e45a 100644 --- a/src/elements/DropDown.lua +++ b/src/elements/DropDown.lua @@ -209,6 +209,7 @@ end --- @protected function DropDown:focus() VisualElement.focus(self) + self:prioritize() self:setState("opened") end