You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 200 documents to delete in the CMS. So I need to quickly delete them sequentially – I am using the shortcut to delete (CNT+ALT+D) and then attempting to press the enter key when the modal window to confirm deletion appears. However, pressing enter closes the modal. The expected behaviour would be that the enter key confirms deletion. Having to use the mouse, makes the benefit of the shortcut delete feature redundant.
To fix, I believe this simply requires the buttons to be wrapped in a form element, with the button type being a submission:
The text was updated successfully, but these errors were encountered:
Using the sanity cli or making a script to the delete a large number of documents is much better suited than using the studio.
Here is a quick example using the javascript client:
I have 200 documents to delete in the CMS. So I need to quickly delete them sequentially – I am using the shortcut to delete (CNT+ALT+D) and then attempting to press the enter key when the modal window to confirm deletion appears. However, pressing enter closes the modal. The expected behaviour would be that the enter key confirms deletion. Having to use the mouse, makes the benefit of the shortcut delete feature redundant.
To fix, I believe this simply requires the buttons to be wrapped in a form element, with the button type being a submission:
The text was updated successfully, but these errors were encountered: