File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ public void StartEntry()
52
52
53
53
_textBoxView ! . AddToTextInputLayer ( xamlRoot ) ;
54
54
InvalidateLayout ( ) ;
55
+
55
56
SetPasswordRevealState ( _currentPasswordRevealState ) ;
56
57
57
58
_textBoxView . SetFocus ( ) ;
@@ -164,8 +165,11 @@ public void UpdatePosition()
164
165
165
166
public void SetPasswordRevealState ( PasswordRevealState revealState )
166
167
{
167
- _textBoxView ? . SetPasswordRevealState ( revealState ) ;
168
- _currentPasswordRevealState = revealState ;
168
+ if ( _owner . TextBox is PasswordBox )
169
+ {
170
+ _textBoxView ? . SetPasswordRevealState ( revealState ) ;
171
+ _currentPasswordRevealState = revealState ;
172
+ }
169
173
}
170
174
171
175
public void Select ( int start , int length )
You can’t perform that action at this time.
0 commit comments