From bdb6b9baf93ea394c1980366e0dfa6c39dd061f8 Mon Sep 17 00:00:00 2001 From: "zhefeng.zhang" <35944775+zhefengzhang@users.noreply.github.com> Date: Tue, 24 Nov 2020 10:37:37 +0800 Subject: [PATCH] sync 2d pr 7793 (#7846) --- cocos/ui/components/editbox/edit-box-impl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocos/ui/components/editbox/edit-box-impl.ts b/cocos/ui/components/editbox/edit-box-impl.ts index f8a1f5d53f..9185200fe7 100644 --- a/cocos/ui/components/editbox/edit-box-impl.ts +++ b/cocos/ui/components/editbox/edit-box-impl.ts @@ -380,6 +380,7 @@ export class EditBoxImpl extends EditBoxImplBase { // begin to updateInputType if (inputFlag === InputFlag.PASSWORD) { elem.type = 'password'; + elem.style.textTransform = 'none'; return; } @@ -433,7 +434,7 @@ export class EditBoxImpl extends EditBoxImplBase { elem.style.height = '100%'; elem.style.outline = 'medium'; elem.style.padding = '0'; - elem.style.textTransform = 'uppercase'; + elem.style.textTransform = 'none'; elem.style.display = 'none'; elem.style.position = 'absolute'; elem.style.bottom = '0px';