json-edit-react icon indicating copy to clipboard operation
json-edit-react copied to clipboard

Alert box via update callbacks

Open mvahowe opened this issue 8 months ago • 1 comments

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?

mvahowe avatar Apr 10 '25 10:04 mvahowe

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

CarlosNZ avatar Apr 10 '25 10:04 CarlosNZ