Skip to content

Commit b045504

Browse files
committed
ComboBox require fix
1 parent ebf46fc commit b045504

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/elements/ComboBox.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local VisualElement = require("elements/VisualElement")
2-
local Dropdown = require("src.elements.DropDown")
2+
local DropDown = require("elements/DropDown")
33
local tHex = require("libraries/colorHex")
44

55
---@configDescription A ComboBox that combines dropdown selection with editable text input
@@ -15,8 +15,8 @@ local tHex = require("libraries/colorHex")
1515
--- @usage {text = "Option 3"},
1616
--- @usage })
1717
--- @usage ComboBox:setText("Custom input...")
18-
---@class ComboBox : Dropdown
19-
local ComboBox = setmetatable({}, Dropdown)
18+
---@class ComboBox : DropDown
19+
local ComboBox = setmetatable({}, DropDown)
2020
ComboBox.__index = ComboBox
2121

2222
---@property editable boolean true Whether the ComboBox allows text input
@@ -58,7 +58,7 @@ end
5858
--- @return ComboBox self The initialized instance
5959
--- @protected
6060
function ComboBox:init(props, basalt)
61-
Dropdown.init(self, props, basalt)
61+
DropDown.init(self, props, basalt)
6262
self.set("type", "ComboBox")
6363

6464
self.set("cursorPos", 1)
@@ -407,14 +407,14 @@ end
407407
--- Called when the ComboBox gains focus
408408
--- @shortDescription Called when gaining focus
409409
function ComboBox:focus()
410-
Dropdown.focus(self)
410+
DropDown.focus(self)
411411
-- Additional focus logic for input if needed
412412
end
413413

414414
--- Called when the ComboBox loses focus
415415
--- @shortDescription Called when losing focus
416416
function ComboBox:blur()
417-
Dropdown.blur(self)
417+
DropDown.blur(self)
418418
self.set("isOpen", false)
419419
self.set("height", 1)
420420
self:updateRender()

0 commit comments

Comments
 (0)