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

[Bug]: HeaderPanel.js:46 Uncaught TypeError: onHeaderPanelFocus is not a function #14413

Closed
2 tasks done
fbarroso24 opened this issue Aug 9, 2023 · 3 comments
Closed
2 tasks done

Comments

@fbarroso24
Copy link

Package

@carbon/react

Browser

Chrome

Package version

@carbon/react: '1.33.2'

React version

v16.14.0

Description

When clicking on the Header element, we're seeing a Uncaught TypeError: onHeaderPanelFocus is not a function error in the console (see below).
image

This appears to be happening in the HeaderPanel.js file on line 46 (see below).
image

Reproduction/example

Click on an item in the header.

Steps to reproduce

Here's a sample skeleton of the code we have
image

  1. Click on a <HeaderGlobalAction>
  2. Observe the error thrown in the console
  3. The code should check to ensure onHeaderPanelFocus is a function prior to trying to call it like a function.

Suggested Severity

Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.

Application/PAL

IBM OP

Code of Conduct

@fbarroso24
Copy link
Author

fyi @guidari, I think you had fixed some similar bugs in the Header area in the past.

@fbarroso24 fbarroso24 changed the title [Bug]: [Bug]: HeaderPanel.js:46 Uncaught TypeError: onHeaderPanelFocus is not a function Aug 9, 2023
@guidari guidari self-assigned this Aug 10, 2023
@guidari
Copy link
Contributor

guidari commented Aug 10, 2023

Hey @fbarroso24 looks like this issue was fixed in this PR #14351
We just have to wait the release.

@fbarroso24
Copy link
Author

Thanks @guidari!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants