'React-bootstrap Button inside Modal component not being triggered

I'm using react-bootstrap Modal component upon button click. It opens the modal. The X button, DISCARD and TO SAVE buttons all trigger the same handleClose() function. But i need TO SAVE button upon click to call save() function, which is not happening. Don't know why.

the code inside the component



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source