Loading csv file instead of array D3 grid visualization

I am trying to show a grid of circles in D3, I’m following this tutorial[https://www.tutorialsteacher.com/d3js/loading-data-from-file-in-d3js]. Instead of inputting a simple array (something like [1,2,3,4]), I’m trying to use a csv file as input. I have tried to parse the input file like this:

    var data =d3.csv("test.csv", function(data){
    console.log(data);
    });

The csv file looks like this:

enter image description here

The output in the console looks like this:
enter image description here

But when I try to use its inputs to draw the circles, it doesn’t seem to recognize the data object. I am trying to add the circles like this:

    var container = svg.append("g")
        .attr("transform", "translate(135,130)");
    
    container.selectAll("circle")
            .data(data)
            .enter().append("circle")
            .attr("id", function(d){return "id"+d;})
            .attr('cx', function(d){return x(d%numCols);})
            .attr('cy', function(d){return y(Math.floor(d/numCols));})
            .attr('r', 12)
            .attr('fill', function(d){return d < percentNumber ? twitterFillActive : twitterFill;})
            .style('stroke', 'white');

When I change the data object to [1,2,3,4], the circles do show up, so I think the problem lays with how I am reading the csv file. I have tried changing data to data[1], I have also tried to remove the column names. I have also tried different parsing functions such as d3.parseCsv.

Any help would be highly appreciated!

JavaScript NameSpace already declared error

I am loading a script with the jQuery getScript function after the document is ready.
The script has these 2 lines:

const myNameSpace={};

function myNameSpace.test() {
}

I am getting this error:

error message

I have used NameSpaces elsewhere in the project in the same way and did not get this error.

Loading CSV data from Box into Javascript?

I have some regularly-updated CSV files on Box that I would like to display on a website. My plan was to create the table with html, then read the CSV file with d3 and update the contents of the table. If the CSV data were on GitHub, I could do something like this:

d3.csv(data_url).then(create_table);
function create_table(data) {
   <code to update a table>
}

However, that doesn’t seem to work with a Box URL. I can generate a URL for the data on Box with the format “https://xxxxxxxx.box.com/shared/static/xxxxxxxxx.csv”. Going to that link directly will download the CSV file, but inserting it into the code above produces a “Cross-Origin Request Blocked” error. Is this possible? Since the CSV files update hourly, it would be best if I could read directly from Box to my website, rather than moving the data elsewhere.

I have this problem with a bootstrap carousel slide show. babvoka

On line 14 of my HTML code I keep getting an Invalid attribute: href error in my <div> tag, and I’m not sure why it’s complaining since I thought href should work there.

Then, further down in the carousel line 32 is throwing an Image source not found error for images/slide/hármas.PNG, and I don’t understand if it’s the special character in the filename or just a path issue.

On line 47 there’s a Bootstrap-related error saying Invalid Bootstrap class: container-flex and I can’t figure out if I need to include some additional Bootstrap CSS or if it’s just deprecated.

In the audio section line 92 is throwing an Unsupported audio format: audio/mpeg3 error, and I didn’t even know mpeg3 wasn’t valid since it’s so close to mpeg.

I tried multiple ways, looked for the lines where it said the errors, and didn’t find anything, I hope you can help

$(document).ready(function() {
  // Indítsuk el a carousel-t betöltéskor
  $('.carousel').carousel({
    interval: 1500
  });
});
body {
  background-color: #dcd2d2;
  overflow: hidden;
}

hr {
  background-color: rgb(77, 0, 0);
  height: 1px;
}

.navbar {
  background-color: rgb(77, 0, 0);
}

.navbar-nav .nav-link {
  color: white;
}

.navbar-brand {
  margin-left: 20%;
}

/* Stílus a diavetítéshez */
.carousel-item {
  height: 10vh;
  /* 10% magasság */
  background-color: white;
}

.carousel-item img {
  margin: auto;
  max-height: 10vh;
  max-width: 33vh;
}

/* Görgethető rész */
.scrollable {
  margin-top: 17vh;
  height: 83vh;
  overflow-y: scroll;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.def-img {
  text-align: center;
}

.popup {
  display: none;
  position: absolute;
  background-color: white;
  padding: 10px;
  border: 1px solid #ccc;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item:hover .popup {
  display: block;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">

<div class="container-fluid fixed-top justify-content-center">
  <div id="carouselExampleSlidesOnly" class="carousel slide " data-ride="carousel">
    <div class="carousel-inner">
      <div class="carousel-item active">
        <img src="images/slide/egyes.PNG" class="d-block w-100" alt="Első kép">
      </div>
      <div class="carousel-item">
        <img src="images/slide/kettes.PNG" class="d-block w-100" alt="Második kép">
      </div>
      <div class="carousel-item">
        <img src="images/slide/hármas.PNG" class="d-block w-100" alt="Harmadik kép">
      </div>
    </div>
  </div>
  <nav class="navbar navbar-expand-lg navbar-dark">
    <div class="container justify-content-center">
      <a class="navbar-brand">A basszusgitár</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
      <div class="collapse navbar-collapse justify-content-center" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item">
            <a class="nav-link" href="#definicio">Definíció</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#tortenet">A basszusgitár története</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#davie504">Davie504 szólói</a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="#validacio">Validáció
            <img class="popup" src="images/validacio.PNG" alt="Második kép">
          </a>
          </li>
        </ul>
      </div>
    </div>
  </nav>
</div>
<div class="scrollable">
  <div class="container-fluid">
    <div id="definicio" class="container">
      <h2>Definíció</h2>
      <div class="row">
        <div class="col-md-4 def-img">
          <img src="images/definicio/bal.PNG" class="img-fluid" alt="Elektro-akusztikus basszusgitár">
          <p>Elektro-akusztikus basszusgitár</p>
        </div>
        <div class="col-md-4 text-justify">
          <p>A basszusgitár a gitár mélyebb hangfekvésű változata. Legismertebb ezek közül az elektromos basszusgitár, ami külsőre hasonlít az elektromos gitárhoz, de legtöbbször csak négyhúros, és menzúrája, tehát rezgőhúr-hosszúsága nagyobb, húrjai vastagabbak a gitárhoz képest. Hangolása legtöbbször a nagybőgőével azonos, tehát húrjai a gitár alsó húrjaihoz képest egy oktávval mélyebbek.</p>
          <p>Az elektromos basszusgitár az 1950-es években jelent meg a szórakoztatózenében a nagybőgő helyettesítő hangszereként. A legtöbb műfajban a ritmusszekcióhoz tartozik, de a dzsessz és funk stílusokban szólózásra is használják. Meghatározó szerepe miatt szinte az összes könnyűzenei műfaj elengedhetetlen szereplője.</p>
          <img src="images/definicio/Jackson.jpg" class="img-fluid bottom" alt="Elektromos basszusgitár">
          <p>Elektromos basszusgitár</p>
        </div>
        <div class="col-md-4 def-img">
          <img src="images/definicio/jobb.PNG" class="img-fluid" alt="Akusztikus basszusgitár">
          <p>Akusztikus basszusgitár</p>
        </div>
      </div>
    </div>
    <div id="tortenet" class="container">
      <hr>
      <h2>A basszusgitár története</h2>
      <div class="row">
        <div class="col-md-2 def-img">
          <img src="images/story/Paul_Tutmarc.jpg" class="img-fluid" alt="Paul Tutmarc">
          <p>Paul Tutmarc</p>
        </div>
        <div class="col-md-10 text-justify">
          <p>Paul Tutmarc seattle-i zenész és feltaláló az 1930-as évek elején a nagybőgő helyettesítésére egy gitárszerű basszushangszert készített tömör testtel, bundokkal, elektromos hangszedővel, melyet játék közben vízszintesen kellett tartani. Az új hangszer a bőgőnél jóval kisebb volt, egyszerűbb volt szállítani, a bundozott fogólap megkönnyítette a pontos intonációt. Körülbelül 100 példány készült belőle.
          </p>
        </div>
      </div>
      <div class="row">
        <div class="col-md-6 text-justify">
          <p>1951-ben hozta létre Leo Fender kaliforniai villamosmérnök a világ első sorozatban gyártott basszusgitárját, a Fender Precision Basst (avagy a P-Basst). Lekerekített élekkel és testtel, valamint egyetlen darab osztott (dominó) pickuppal, 34"-os menzúrával és 20 érintővel rendelkezett.
          </p>
        </div>
        <div class="col-md-6 def-img">
          <img src="images/story/pbass.jpg" class="img-fluid" alt="Precision bass">
          <p>Fender Precision bass</p>
        </div>
      </div>
      <div class="row ">
        <div class="col-md-7 def-img">
          <img src="images/story/jbass.jpg" class="img-fluid" alt="Jazzbass">
          <p>Fender Jazzbass</p>
        </div>
        <div class="col-md-5 text-justify">
          <p>Fender következő basszusgitárja az 1960-ban bemutatott Fender Jazz Bass volt, ami a Fender Jazzmaster gitár basszusváltozata volt. Két egytekercses (single coil) hangszedő volt rajta, egy a húrlábnál, egy pedig a koptatólapon a nyaknál. Hangszedőnként külön hangerő- és hangszínszabályozója volt 1961-ig, amikor átalakították a hangszer elektronikáját: ettől kezdve a hangszert két hangerő-, de csak egy hangszínszabályozóval gyártották. Basszusgitároknál a mai napig ez számít szokásos passzív elektronikának. Nyakmérete megegyezik a P-bassével, de nyakprofilja annyiban különbözik, hogy a fej felé erősen elvékonyodik.
          </p>
        </div>
      </div>
      <div class="row">
        <div class="col-md-4 text-justify">
          <p>Az érintő nélküli basszusgitárok (fretless bass) profi zenészek számára biztosítanak lehetőséget az igazán kifinomult játékra. A húrok közvetlenül a fogólap felületének nyomódnak neki, emiatt a hangszer hangja eltér az érintővel ellátott gitárok hangszínétől. Esetenként az érintők helyett csak jelölő vonalak vannak, amelyek nem emelkednek ki a fogólapból, de leggyakrabban ezek is elmaradnak. Az első „fretless” hangszert Bill Wyman, a Rolling Stones basszusgitárosa készítette 1961-ben, egy olcsó japán basszusgitár bundjainak eltávolításával.</p>
        </div>
        <div class="col-md-3 def-img">
          <img src="images/story/Bill_Wyman.jpeg" class="img-fluid" alt="Bill Wyman">
          <p>Bill Wyman</p>
        </div>
        <div class="col-md-5 text-justify">
          <div>
            <p>
              A fej nélküli gitár ötletét Ned Steinberger vetette fel, aki a 80-as évek végén felborított minden elképzelést arról, hogy hogyan is kellene egy basszusgitárnak kinéznie, és hogyan kellene elkészíteni. A basszusgitár kicsi és fej nélküli lett, anyaga öntött epoxigyanta szénszálas és üvegszálas megerősítéssel.
            </p>
          </div>
          <div class="def-img">
            <img src="images/story/steinberger.jpg" class="img-fluid" alt="Steinberger gitár">
            <p>Steinberger gitár</p>
          </div>
        </div>
      </div>
    </div>
    <div id="davie504" class="container text-justify">
      <hr>
      <h2><a href="https://youtube.com/@Davie504" target="_blank">Davie504</a> szólói</h2>
      <p>Davide Biale (1994.04.05., Savona, Olaszország), vagy ahogyan az internetes közösség nagy része ismeri, Davie504, egy olasz zenész és YouTuber, aki főleg basszusgitáron játszik. Biale különleges stílusa és humorérzéke által vált népszerűvé a YouTube-on és más közösségi média platformokon. Eddig 13,4 millióan iratkoztak fel a csatornájára. Az egyik legkiemelkedőbb jellemzője Davie504-nek az a kreativitás és sokoldalúság, amit a basszusgitárjátékban mutat. Különféle módokon használja a hangszerét: ujjpengetés, slapping, tapping, testütés pengetéssel tarkítva, stb. Ez a sokoldalúság és a különleges technikák használata egyedi hangzást kölcsönöz a produkcióinak. Emellett humorral és öniróniával átitatott stílusa is hozzájárul az izgalmas tartalmak létrehozásához. Videóiban gyakran viccelődik a basszusgitáros sztereotípiákon és a zenei kliséken, ami könnyed hangulatot kölcsönöz műsorainak.</p>
      <div class="row">
        <div class="col-md-4">
          <audio controls>
            <source src="music/FRETLESS_BASS_SOLO.mp3" type="audio/mpeg">
            A böngésződ nem támogatja a hangfájlok lejátszását.
        </audio>
          <p class="def-img">Fretles (bund nélküli) basszusgitár szóló</p>
        </div>
        <div class="col-md-4">
          <audio controls>
            <source src="music/ACOUSTIC_BASS_SOLO.mp3" type="audio/mpeg">
            A böngésződ nem támogatja a hangfájlok lejátszását.
        </audio>
          <p class="def-img">Akusztikus basszusgitár szóló</p>
        </div>
        <div class="col-md-4">
          <audio controls>
            <source src="music/Slap_Bass_solo.mp3" type="audio/mpeg">
            A böngésződ nem támogatja a hangfájlok lejátszását.
        </audio>
          <p class="def-img">Slap basszusgitár szóló</p>
        </div>
      </div>
    </div>
  </div>

How do I post Client side and Server postback at the same time?

I have been running in circles with trying to figure out how to send pardot a tracking post, but at the same time complete my regular registration form in my ASP.NET webpage. I cannot use, or pardot has issues with certain ajax style posts. I need to send cookie data in the client side post. We have tried to send a server-side-post to pardot and that does work, but of course it does not send the tracking data. So the task came down to trying to send on the client side in the OnClientClick event. The following code does not work, but its what I was attempting.

What I’ve tried:

<asp:Button id="Button1" runat="server" OnClientClick="ContactInfo_Check()" UseSubmitBehavior="false" />

function ContactInfo_Check() {
 //validation code...
              pardotsend({
                  emailAddress: document.getElementById("<%=lbl_customeremail.ClientID %>").value,
                  userId: "",
                  firstName: document.getElementById("<%=tb_firstname.ClientID %>").value,
                  lastName: document.getElementById("<%=tb_lastname.ClientID %>").value,
                  company: document.getElementById("<%=tb_Company.ClientID %>").value,
                  phone: document.getElementById("<%=tb_phone.ClientID %>").value,
                  zipcode: ''
              });

pardot.js, I’ve tried with or without the iframe nonsense.

function pardotsend(payload) {

var form = document.createElement("form");
var element1 = document.createElement("input"); 
var element2 = document.createElement("input");  
var element3 = document.createElement("input"); 
var element4 = document.createElement("input");  
var element5 = document.createElement("input"); 
var element6 = document.createElement("input");  

// create an iframe 
var addIframe = document.createElement('iframe');
addIframe.setAttribute('name', 'sample-iframe');
addIframe.setAttribute('onload', 'frameisloaded()');
addIframe.style.height = "60px";
addIframe.style.width = "60px";
document.body.appendChild(addIframe);

form.id = "pardot-form"
form.method = "POST";
form.action = "https://go.fathommfg.com/l/137771/2025-05-06/3n1xdt";
form.target = "sample-iframe";

element1.value=payload['emailAddress'];
element1.name="email_address";
form.appendChild(element1);  

element2.value=payload['userId'];
element2.name="user_id";
form.appendChild(element2);

element3.value=payload['firstName'];
element3.name="first_name";
form.appendChild(element3);

element4.value=payload['lastName'];
element4.name="last_name";
form.appendChild(element4);

element5.value=payload['company'];
element5.name="company";
form.appendChild(element5);

element6.value=payload['phone'];
element6.name="phone";
form.appendChild(element6);

document.body.appendChild(form);

form.submit();

}

        function frameisloaded () {
        __doPostBack("viewquote_Click", "OnClick"); //initiate the form postback
    }

So I’m really doing a double post. If I remove the ‘Target’, and take out the iframe…. And I put the __doPostBack(“viewquote_Click”) in the ContactInfo_Check function after the Pardotsend, the postback seems to stop the Script-post-back from happening. Or if I put in the original Click-event to go to ‘ViewQuote_Click’ the same thing happens. That is the partdot script post never completes, or never returns, or never has a chance to reach the destination before the server-side posts-back.

What are those Chinese Characters with [CLEARLY | SYSTEM TTS] in React Console? [closed]

I am learning React using JS, and while executing npm run dev, I noticed in my console, the following:

the screenshot of the problem with Chinese Characters

I noticed that I could notice same lines in every website I look into console. Therefore I was wondering what is that and why it is in Chinese (why not localized?)

Humbly thankful for any explanations.

Is it a bad thing not to use any React hooks on a project? [closed]

is it bad not to use hooks in Reacts if I want to manipulate the DOM
like changing the style of an element

P.S. I am currently learning Reacts so if there is a better way to handle elements, please advise

Example:

window.onscroll = () => {
    if (window.scrollY >= 400) {
      document.querySelector("header").style.backgroundColor = "#001F54";
      document.querySelector("header").style.position = "fixed";
      document.querySelector("header").style.color = "#fff";
      document.querySelector(".burger-menu").style.fill = "#fff";
      document.querySelector(".arrow-up").style.display = "block";
    } else {
      document.querySelector("header").style.backgroundColor = "transparent";
      document.querySelector("header").style.position = "absolute";
      document.querySelector(".arrow-up").style.display = "none";
    }
  };

Vite terser minifier doing nothing

Consider this repro script.

#!/bin/bash -x

rm -rf my-vanilla-lib
npm create vite@latest my-vanilla-lib -- --template vanilla
cd my-vanilla-lib
npm i
cat <<EOL > vite.config.js
export default {
    build: {
        minify: 'terser',
        terserOptions: {
            compress: {
                passes: 2,
            },
            mangle: true,
            format: {
                beautify: false,
                comments: false,
            },
        },
        lib: {
            entry: 'src/counter.js',
            name: 'MyLibrary',
            fileName: 'my-library',
            formats: ['es'],
        },
    }
};
EOL
npm run build
cat dist/my-library.js

The output looks like this, with whitespace in my JS totally unminified.

function setupCounter(element) {
  let counter = 0;
  const setCounter = (count) => {
    counter = count;
    element.textContent = `count is ${counter}`;
  };
  element.addEventListener("click", () => setCounter(counter + 1));
  setCounter(0);
  console.log("Counter initialized");
}
export {
  setupCounter
};

In fact, it’s a few characters larger than the original counter.js file that Vite generates as part of the template.

Why is this happening? How do I make terser actually do something in my Vite build?

Visual issues after migrating to Shadow DOM architecture [closed]

I am working on a personal reactjs project and have created two projects using Module Federation.

In the main project I added some CSS which is affecting the remote project. After Googling I found that a better way to handle this is by using a Shadow DOM which isolates the remote component.

However while implementing the Shadow DOM the entire remote project disappeared.

const App = (() => {
  const divRef = useRef(null);

  useEffect(() => {
    if (divRef.current && !divRef.current.shadowRoot) {
      const shadowRoot = divRef.current.attachShadow({ mode : "open" })
    }
  }, [])

  <div className='app' ref={divRef}></div>

Having an issue implementing a shadow DOM in react

const App = (() => {
const divRef = useRef(null);

useEffect(() => {
if(divRef.current && !divRef.current.shadowRoot){
  const shadowRoot = divRef.current.attachShadow({mode : "open"})
 }
},[])


<div> className='app' ref={divRef}>

</div>

I am working on a personal project and have created two projects using Module Federation. In the main project, I added some CSS, which is affecting the remote project. After Googling, I found that a better way to handle this is by using Shadow DOM, which isolates the remote component. However, while implementing the Shadow DOM, the entire remote project disappeared.

outlook calendar not showing calendar events when embeded on a website

Am using this code to embed my outlook calendar on a html page via an iframe. when I access the app, I can only see the calendar but all the events are not showed. my email is eg. [email protected].

I set permission to: can view all details

Please what could be the issue. Thanks

<!DOCTYPE html>
<html>
<head>
  <title>My Page with Outlook Calendar</title>
  <style>
    /* Optional: Style the iframe */
    iframe {
      border: 1px solid #ccc; /* Example border */
    }
  </style>
</head>
<body>

  <h1>Our Event Calendar</h1>

  <p>Here's our public calendar from Outlook:</p>

  <iframe
    src="https://outlook.live.com/owa/calendar/00000000-0000-0000-0000-000000000000/xxxxxxxxxxxxxxxxxxxxxxx/index.html"
    style="border: 0"
    width="1200"
    height="600"
    frameborder="0"
    scrolling="yes"
    title="Public Outlook Calendar">
  </iframe>

  <p>More content on the page...</p>

</body>
</html>

React Typescript toggle not working as expected

Creating a mini app to demonstrate the problem I’m having with React & Typescript

Here is a simple toggle component

import { MouseEvent, useState } from "react";

interface ToggleParams {
  label?: string;
  value?: boolean;
  disabled?: boolean;
  onToggleClick?: (
    event: MouseEvent<HTMLButtonElement>,
    value: boolean
  ) => void;
}

const Toggle = ({
  label = "",
  value = false,
  disabled = false,
  onToggleClick = () => {},
}: ToggleParams) => {
  const [enabled, setEnabled] = useState(value);

  const handleClick = (event: MouseEvent<HTMLButtonElement>) => {
    if (disabled) return;
    console.log("handleClick > enabled", enabled);
    const newValue = !enabled;
    console.log("handleClick > newValue", newValue);
    setEnabled(value);
    onToggleClick(event, newValue);
  };

  return (
    <button
      onClick={handleClick}
      disabled={disabled}
      className="focus:outline-none"
    >
      {`${enabled ? "true" : "false"} ${label}`}
    </button>
  );
};

export default Toggle;

here is the code that tests this component

import { useState } from "react";
import Toggle from "./Toggle";

export default function App() {
  const [toggleAll, setToggleAll] = useState(false);
  const [toggleItem, setToggleItem] = useState(false);
  const [toggleDisabled, setToggleDisabled] = useState(false);

  console.log("Toggle state", toggleAll, toggleItem, toggleDisabled);

  const onToggleAllClick = (event: any, value: boolean) => {
    setToggleAll(value);
    setToggleItem(value);
    setToggleDisabled(value);
  };

  const onToggleItemClick = (event: any, value: boolean) => {
    setToggleItem(value);
    if (!value) {
      setToggleAll(value);
      setToggleDisabled(value);
    }
  };

  return (
    <div className="App">
      <div>
        <Toggle
          value={toggleAll}
          label={"Toggle All"}
          onToggleClick={onToggleAllClick}
        />
      </div>
      <div>
        <Toggle
          value={toggleItem}
          label={"Toggle Item"}
          onToggleClick={onToggleItemClick}
        />
      </div>
      <div>
        <Toggle
          value={toggleDisabled}
          label={"Toggle Disabled"}
          disabled={true}
        />
      </div>
    </div>
  );
}

The toggle should change state when I click them, however they don’t on the 1st click

When I click the Item toggle, the console correctly shows

handleClick > enabled false
handleClick > newValue true
Toggle state false true false

indicating that the code works, however the display shows

false Toggle All
false Toggle Item
false Toggle Disabled

which means the toggle component itself didn’t change

clicking it again, then changes the display correctly to this

false Toggle All
true Toggle Item
false Toggle Disabled

the console output doesn’t change

I refresh the page to start again

When I click the All toggle, all the items should be true, and the console correctly shows

handleClick > enabled false
handleClick > newValue true
Toggle state true true true

however the display incorrectly shows

false Toggle All
false Toggle Item
false Toggle Disabled

all these should have changed from false to true

when I click All toggle again, the console is the same, but the display changes to

true Toggle All
false Toggle Item
false Toggle Disabled

toggle All display changed correctly this time, but the others should have changed as well

Bug: toggles need to be clicked twice before they change their own value on the display

now click item toggle (once), the item toggle now displays true and only needed 1 click

now click item toggle again (twice) so that it shows false

the display changes to

handleClick > enabled true
handleClick > newValue false
Toggle state false false false

the code correctly changed all the values to false here in the console according to onToggleItemClick, however the display still incorrectly shows

true Toggle All
false Toggle Item
false Toggle Disabled

Bug: toggles need to be change their value when the underlying value from the code changes

Bug: the disabled toggle should also change its value when the underlying value from the code changes

what do I need to do to correctly show get the toggle to display the correct value?

Here is a sandbox https://codesandbox.io/p/sandbox/vibrant-jackson-44g6xt