Fleet UI: [fix] SQL editor remove multiple cursor functionality (#14387)

This commit is contained in:
RachelElysia 2023-10-11 11:50:27 -04:00 committed by GitHub
parent 4416393d57
commit debe6626fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1 @@
- Fleet UI: Disable multicursor editing for SQL editors

View file

@ -104,6 +104,7 @@ const LabelForm = ({
const onLoad = (editor: IAceEditor) => {
editor.setOptions({
enableLinking: true,
enableMultiselect: false, // Disables command + click creating multiple cursors
});
// @ts-expect-error

View file

@ -179,6 +179,7 @@ const PolicyForm = ({
const onLoad = (editor: IAceEditor) => {
editor.setOptions({
enableLinking: true,
enableMultiselect: false, // Disables command + click creating multiple cursors
});
// @ts-expect-error

View file

@ -208,6 +208,7 @@ const QueryForm = ({
const onLoad = (editor: IAceEditor) => {
editor.setOptions({
enableLinking: true,
enableMultiselect: false, // Disables command + click creating multiple cursors
});
// @ts-expect-error