How to make Checkbox only activate function when checked

Viewed 12

I'm having issues with my checkbox, I can't seem to figure out how to get the function to only run when the box is checked. I understand why it is happening but I'm having trouble writing a statement to require the checked state to be true

   <Checkbox
             
              disabled={false}
              value='MultiEdit'
              aria-label="Close"
              onChange={() => onChangeValue(item) }
          
            >
            </Checkbox>
          ```
0 Answers
Related