11local VisualElement = require (" elements/VisualElement" )
2- local Dropdown = require (" src. elements. DropDown" )
2+ local DropDown = require (" elements/ DropDown" )
33local 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 )
2020ComboBox .__index = ComboBox
2121
2222--- @property editable boolean true Whether the ComboBox allows text input
5858--- @return ComboBox self The initialized instance
5959--- @protected
6060function 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
409409function ComboBox :focus ()
410- Dropdown .focus (self )
410+ DropDown .focus (self )
411411 -- Additional focus logic for input if needed
412412end
413413
414414--- Called when the ComboBox loses focus
415415--- @shortDescription Called when losing focus
416416function 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