-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Snuba admin breaks browser undo #6786
Comments
the answer for this is probably to use basicSetup to give codemirror reasonable defaults: https://codemirror.net/docs/ref/#codemirror.basicSetup just want to check with @gggritso that there's nothing special in our logic here |
basicSetup and minimalSetup seem to do something that conflicts with the DOM so maybe we just add in a custom history handler and call it a day:
|
👋🏻 the important parts of the custom extensions are
If the basic setup (or minimal) are able to do all that, you're good to go! At the time when I put this together I don't think it did |
If you delete a string in the System Queries tool (probably other SQL text entries as well) and then Control+ or Command+Z in the browser, the undo doesn't perform any action. We should not override browser behavior if we're not doing anything else useful.
The text was updated successfully, but these errors were encountered: