json-edit-react
json-edit-react copied to clipboard
Alert box via update callbacks
I would like to add an "Are you sure" confirmation alert before deleting. onDelete feels like the place to do this, but I can't see how to handle the Alert UI interaction within the callback. Is there a boilerplate way to implement this kind of thing?
Yeah, this has come up before. It's a little tricky, but there's some suggestions on this issue that might help: https://github.com/CarlosNZ/json-edit-react/issues/117