Skip to content

Commit 03d653a

Browse files
authored
Fix static popup error (#139)
1 parent a375638 commit 03d653a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

core.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,19 @@ do
102102
hideOnEscape = true,
103103
hasEditBox = true,
104104
OnAccept = function(self, data)
105-
local recipient = self.editBox:GetText()
105+
local recipient = self:GetEditBox():GetText()
106106
addon:SendBugsToUser(recipient, data)
107107
end,
108108
OnShow = function(self)
109-
self.button1:Disable()
109+
self:GetButton1():Disable()
110110
end,
111111
EditBoxOnTextChanged = function(self)
112112
local t = self:GetText()
113+
local dialog = self:GetParent()
113114
if t:len() > 2 and not t:find("%s") then
114-
self:GetParent().button1:Enable()
115+
dialog:GetButton1():Enable()
115116
else
116-
self:GetParent().button1:Disable()
117+
dialog:GetButton1():Disable()
117118
end
118119
end,
119120
enterClicksFirstButton = true,

0 commit comments

Comments
 (0)