mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
revert native placeholder change
This commit is contained in:
@@ -252,11 +252,8 @@ void EditBoxImplCommon::setPlaceHolder(const char* text)
|
||||
if (nullptr != text)
|
||||
{
|
||||
_placeHolder = text;
|
||||
if (_editingMode) {
|
||||
this->setNativePlaceHolder(text);
|
||||
} else {
|
||||
_labelPlaceHolder->setString(_placeHolder);
|
||||
}
|
||||
this->setNativePlaceHolder(text);
|
||||
_labelPlaceHolder->setString(_placeHolder);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user