SolidJSS
SolidJSโ€ข4mo agoโ€ข
1 reply
Bersaelor

onClick preventDefault/stopPropagation not working

I have an solid-ag-grid based table with buttons in the table.

I tried everything but clicking the button always triggers the onRowClicked too ๐Ÿ™

      <IconButton onClick={(event) => {
        event.preventDefault();
        event.stopPropagation();

        console.log("Edit tapped on row", props.data, event);

        return false
      }}>
Was this page helpful?