Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar Active control blur/focus-out events not happening when clicking within in Edge and Chrome #2494

Open
aagash-ni opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working triage New issue that needs to be reviewed

Comments

@aagash-ni
Copy link
Contributor

aagash-ni commented Dec 11, 2024

🐛 Bug Report

In Chrome and Edge, when a control (e.g., a button or text field) within a toolbar is focused or active, clicking anywhere else within the toolbar does not blur the currently active control or set its value. However, clicking outside the toolbar works as expected and blurs the active control.

This behavior functions correctly in Firefox, where clicking within the toolbar properly blurs the active control.

focusing-toolbar-issue

💻 Repro or Code Sample

  • Click on any element inside the toolbar to make it focused or active.
  • Then, click on any other area within the toolbar to blur or remove focus from the currently active control.

🤔 Expected Behavior

  • clicking on any area within the toolbar should blur or remove focus from the currently active control, just as it does when clicking outside the toolbar.

😯 Current Behavior

  • Clicking within the toolbar does not blur or focus out the currently active control

🔦 Context

Discussion link: https://dev.azure.com/ni/DevCentral/_git/Skyline/pullRequest/850146#1733521296

🌍 Your Environment

  • OS: Windows
  • Browser: Microsoft Edge, Google Chrome, Mozilla FireFox
@aagash-ni aagash-ni added bug Something isn't working triage New issue that needs to be reviewed labels Dec 11, 2024
@aagash-ni aagash-ni changed the title Toolbar blurring/focus-out (event handling) the active controls is not working when clicking the area within it Toolbar Active control blur/focus-out events not triggered when clicking within in Edge and Chrome Dec 11, 2024
@aagash-ni aagash-ni changed the title Toolbar Active control blur/focus-out events not triggered when clicking within in Edge and Chrome Toolbar Active control blur/focus-out events not happening when clicking within in Edge and Chrome Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issue that needs to be reviewed
Projects
Status: No status
Development

No branches or pull requests

1 participant