mui-toolpad icon indicating copy to clipboard operation
mui-toolpad copied to clipboard

[pro code] Undo/Redo stack

Open oliviertassinari opened this issue 1 year ago • 5 comments

Summary

Similar to https://github.com/mui/mui-x/issues/9339 but with more components.

Examples

  • https://developer.mescius.com/wijmo/demos/Undo/UndoStack/purejs

Motivation

No response

Search keywords: undo/redo

oliviertassinari avatar Feb 25 '24 16:02 oliviertassinari

hi just checking in here! is there an estimated at which this will be worked on? and will this be implemented for data grid

jjram19 avatar Feb 28 '24 22:02 jjram19

@jjram19 What's your use case?

oliviertassinari avatar Feb 28 '24 23:02 oliviertassinari

@oliviertassinari im using DataGridPremium right now for editable table ui and a big customer request is Cmd+z undo to undo cell edits. on unfocused (non-editing state) was wondering if we could get cmd+z to undo the previous committed change to the table

jjram19 avatar Feb 29 '24 03:02 jjram19

Ok thanks. So it looks like you are looking for https://github.com/mui/mui-x/issues/9339 (not this issue).

oliviertassinari avatar Feb 29 '24 13:02 oliviertassinari

I think we can categorize this feature request as part of improved form support:

  • scoping the undo/redo stack to a single form
  • resetting the stack on successful form submission

Something I'm surprised about is that it seems to be missing in react-hook-form

Janpot avatar Feb 29 '24 13:02 Janpot