mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
!49238 回退修改!48941
Merge pull request !49238 from wjn/code_rollback_48941
This commit is contained in:
commit
d055c6c9ca
@ -461,6 +461,7 @@ ArkUINativeModuleValue TextAreaBridge::SetShowCounter(ArkUIRuntimeCallInfo *runt
|
||||
thresholdValue = thresholdArg->Int32Value(vm);
|
||||
if (thresholdValue < MINI_VALID_VALUE || thresholdValue > MAX_VALID_VALUE) {
|
||||
thresholdValue = static_cast<int32_t>(ILLEGAL_VALUE);
|
||||
showCounter = false;
|
||||
}
|
||||
}
|
||||
GetArkUINodeModifiers()->getTextAreaModifier()->setTextAreaShowCounterOptions(
|
||||
|
@ -1497,6 +1497,7 @@ ArkUINativeModuleValue TextInputBridge::SetShowCounter(ArkUIRuntimeCallInfo* run
|
||||
thresholdValue = thresholdArg->Int32Value(vm);
|
||||
if (thresholdValue < MINI_VALID_VALUE || thresholdValue > MAX_VALID_VALUE) {
|
||||
thresholdValue = ILLEGAL_VALUE;
|
||||
showCounter = false;
|
||||
}
|
||||
}
|
||||
GetArkUINodeModifiers()->getTextInputModifier()->setTextInputShowCounter(
|
||||
|
@ -1394,7 +1394,7 @@ void JSTextField::SetShowCounter(const JSCallbackInfo& info)
|
||||
static_cast<uint32_t>(inputNumber) > MAX_VAILD_VALUE) {
|
||||
LOGI("The info is wrong, it is supposed to be a right number");
|
||||
TextFieldModel::GetInstance()->SetCounterType(ILLEGAL_VALUE);
|
||||
TextFieldModel::GetInstance()->SetShowCounter(jsValue->ToBoolean());
|
||||
TextFieldModel::GetInstance()->SetShowCounter(false);
|
||||
return;
|
||||
}
|
||||
TextFieldModel::GetInstance()->SetShowCounter(jsValue->ToBoolean());
|
||||
|
Loading…
Reference in New Issue
Block a user