Skip to content

Commit 422fa6c

Browse files
committed
Fixed a bug in TokenizingTextBox
1 parent dbf196d commit 422fa6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Input/TokenizingTextBox/TokenizingTextBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ private void GuardAgainstPlaceholderTextLayoutIssue()
532532
//
533533
// To combat this issue:
534534
// We toggle the visibility of the Placeholder ContentControl in order to force it's layout to update properly
535-
var placeholder = ContainerFromItem(_lastTextEdit).FindDescendant("PlaceholderTextContentPresenter");
535+
var placeholder = ContainerFromItem(_lastTextEdit)?.FindDescendant("PlaceholderTextContentPresenter");
536536

537537
if (placeholder?.Visibility == Visibility.Visible)
538538
{

0 commit comments

Comments
 (0)