UIShell HeaderMenu puts "# in URL when drop-down is clicked #14708
Labels
adopter: product
Work-stream that directly helps a Product team.
component: ui-shell
package: @carbon/react
@carbon/react
role: dev 🤖
severity: 2
https://ibm.biz/carbon-severity
status: needs triage 🕵️♀️
type: bug 🐛
version: 11
Issues pertaining to Carbon v11
When the user clicks on the UIShell's drop-down component, before selecting anything, the URL gets set to
#
. This is because theHeaderMenu
component injects an<a>
element withhref="#"
:It seems to be that if the click handler invoked
event.stopPropagation()
, then the URL would not be changed and it would work as desired.The issue that originally describes this issue is this one.
The text was updated successfully, but these errors were encountered: