mi6 / ic-design-system

Intelligence Community Design System
https://design.sis.gov.uk
MIT License
42 stars 29 forks source link

Website goes blank when clicking React button #1173

Open nmcc1212 opened 5 days ago

nmcc1212 commented 5 days ago

Summary of the bug

When clicking "React" button in top navigation component example for "With React Router (using slots)", the whole page goes blank

🪜 How to reproduce

Tell us the steps to reproduce the problem:

  1. Go to page: https://design.sis.gov.uk/components/top-navigation/code
  2. Scroll down to "With React Router (using slots)" under "Variants"
  3. Click on: React (button shown in red below) Screenshot 2024-10-17 at 5 24 00 pm
  4. Whole page goes blank

📸 Screenshots or code

output

Chrome console

image

🖥 📱 Device

🧐 Expected behaviour

For the page not to have gone blank

📝 Acceptance Criteria

If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

Given When
Then

Additional info

Edit: This issue also occurs with the "Conditional tabs" variant demo

MI6-255 commented 4 hours ago

Any examples that only have the React option have this error