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

I need Help to Solve React-Router-Dom in Spfx Issue : when i click on Button at that time it changes Parent routing also and create new routing #10116

Open
1 of 9 tasks
vaidik2626 opened this issue Feb 14, 2025 · 0 comments

Comments

@vaidik2626
Copy link

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Issue description

when i click on Button at that time it changes Parent routing also and create new routing

This is my Code:
<button className="button" onClick={() => handleChartClick(chartData.lineChart)}>
Line Chart

<button className="button" onClick={() => handleChartClick(chartData.pieChart)}>
Pie Chart

<button className="button" onClick={() => handleChartClick(chartData.columnChart)}>
Column Chart

<button className="button" onClick={() => handleChartClick(chartData.scatterPlot)}>
Scatter Plot Chart

<button className="button" onClick={() => handleChartClick(chartData.areaChart)}>
Area Chart

<button className="button" onClick={() => handleChartClick(chartData.stackedColumnChart)}>
Stacked Column Chart

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

No branches or pull requests

1 participant