skip to Main Content

Reactjs – How do I preevnt an ion-checkbox from being checked when an icon in its row is clicked?

I'm using Ionmic 7 with React 18. I have this simple list of items that can be checked or edited. <IonList> <IonLabel> <strong>Select Items</strong> </IonLabel> {items.map((item) => ( <IonItem key={item}> <IonCheckbox slot="start" name="selectedItems" value={item} /> <IonLabel>{item}</IonLabel> <IonIcon icon={pencilOutline} slot="end" onClick={onEditHandler(item)}…

VIEW QUESTION
Back To Top
Search