We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3e592 commit 7ffd05eCopy full SHA for 7ffd05e
src/DialogueEditor/components/Dropdown/init.luau
@@ -31,7 +31,7 @@ local function Dropdown(props: DropdownProps)
31
React.useEffect(function()
32
33
local toggleButton = toggleButtonRef.current;
34
- assert(toggleButton, "Toggle button reference is nil.");
+ if not toggleButton or not toggleButton:IsA("TextButton") then return end;
35
36
local connection = VirtualService.events.GuiButton.Activated:getSignal(toggleButton):Connect(function()
37
@@ -42,7 +42,7 @@ local function Dropdown(props: DropdownProps)
42
return function()
43
44
connection:Disconnect();
45
-
+
46
end;
47
48
end, {isOpen :: unknown, setIsOpen});
0 commit comments