fix crash when clearing inputbox

This commit is contained in:
chrox
2016-06-26 22:43:40 +08:00
parent 3d7fe1002c
commit f1b76d41d9

View File

@@ -177,6 +177,7 @@ function InputText:delChar()
end
function InputText:clear()
self.charpos = nil
self:initTextBox("")
UIManager:setDirty(self.parent, function()
return "ui", self[1][1].dimen