dotnet / dotnet/wpf

TAB navigation allows you to navigate to hidden Hyperlinks

Open
#2,569 5 comments 2 reactions 1 assignee Claimed by @anjaligupta-dev View on GitHub
Bug
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version: 3.1
* Windows version: Windows 10 64bit
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

**Problem description:**

Even if the Visibility of the TextBox is set to Collapsed, you can still navigate to internal hyperlinks via TAB navigation.

This can cause unintended hyperlink processing.

**Minimal repro:**

```

LINK

```

```
private void Hyperlink_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("Clicked");
}
```

1. Press TAB key -> Focus moves to invisible Hyperlink.
2. Press Enter key -> Hyperlink event is executed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.