!48313 输入框Password和NEW_PASSWORD模式不进行Filter

Merge pull request !48313 from wjn/text_input_password_filter
This commit is contained in:
openharmony_ci 2024-11-12 06:34:42 +00:00 committed by Gitee
commit 66319ed4e0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -143,10 +143,9 @@ void ContentController::FilterTextInputStyle(bool& textChanged, std::string& res
break;
}
case TextInputType::VISIBLE_PASSWORD:
case TextInputType::NEW_PASSWORD: {
textChanged |= FilterWithAscii(result);
break;
}
case TextInputType::NEW_PASSWORD:
break;
case TextInputType::NUMBER_PASSWORD: {
textChanged |= FilterWithEvent(DIGIT_WHITE_LIST, result);
break;