From 02b59f020e13b1f4dc20b24d32690ea8467d5444 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Wed, 18 Nov 2015 15:05:13 +0800 Subject: [PATCH] Fix onEndEditing issue in script. Issue: https://github.com/cocos2d/cocos2d-x/issues/14332 --- cocos/ui/UIEditBox/UIEditBoxImpl-common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/ui/UIEditBox/UIEditBoxImpl-common.cpp b/cocos/ui/UIEditBox/UIEditBoxImpl-common.cpp index c44dec446878..10859ed70c5e 100644 --- a/cocos/ui/UIEditBox/UIEditBoxImpl-common.cpp +++ b/cocos/ui/UIEditBox/UIEditBoxImpl-common.cpp @@ -350,7 +350,7 @@ void EditBoxImplCommon::editBoxEditingDidEnd(const std::string& text) if (_editBox != nullptr) { - this->onEndEditing(text); + this->onEndEditing(_text); } }