Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation dialog box with onRowDelete #1881

Open
StefanIgnjatovic12 opened this issue Mar 6, 2022 · 0 comments
Open

Confirmation dialog box with onRowDelete #1881

StefanIgnjatovic12 opened this issue Mar 6, 2022 · 0 comments

Comments

@StefanIgnjatovic12
Copy link

Hi.
I am trying to display a confirmation dialog before a row gets deleted. I saw #835 and #1664 which added async functionality to deleting rows so maybe my implementation is wrong? I would appreciate any help, thanks in advance.

Expected Behavior

Confirmation box is opened upon user deleting row, if confirmed the row gets deleted if not false is returned.

Current Behavior

At present when the confirmation dialog box opens, the row gets unselected and it doesn't get deleted following confirmation.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/friendly-gagarin-8s96sf?file=/src/App.js
I basically just copied the sandbox from #835. I'm using miubox for the dialogue box and had tried the React dialogue component before too.

Your Environment

Tech Version
Material-UI 5.4.3
MUI-datatables 4.1.2
React 17.0.2
browser Chrome 98.0.4758.102
etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant