Skip to content

Commit f288704

Browse files
committed
fixes for case adding data at the end of the textbox
1 parent 987221b commit f288704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI/Extensions/TextBoxMask/TextBoxMask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private static void Textbox_TextChanging(TextBox textbox, TextBoxTextChangingEve
300300
// case adding data at the end of the textbox
301301
if (oldSelectionStart >= oldText.Length && !isDeleteOrBackspace)
302302
{
303-
textbox.Text = oldText;
303+
textbox.Text = textbox.Text.Substring(0, oldText.Length);
304304
if (oldText.Length >= 0)
305305
{
306306
textbox.SelectionStart = oldText.Length;

0 commit comments

Comments
 (0)