fix(picker): opts.focus = false now works again

This commit is contained in:
Folke Lemaitre 2025-02-13 22:05:46 +01:00
parent 885c1409e8
commit 031f9e96fb
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -507,7 +507,9 @@ function M:show()
end
self.shown = true
self.layout:show()
self:focus()
if self.opts.focus ~= false then
self:focus()
end
if self.opts.on_show then
self.opts.on_show(self)
end