Skip to content

Commit

Permalink
fix(supersearch): Allow deletion of inserted quotes (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperengstrom authored Nov 29, 2024
1 parent bf186fb commit a6db672
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { syntaxTree } from '@codemirror/language';
/**
* Moves cursor into an empty quote on falsy qualifier value
*/

const insertQuotes = (tr: Transaction) => {
let foundEmptyQValue = false;
const changes: TransactionSpec = {
Expand All @@ -20,7 +19,7 @@ const insertQuotes = (tr: Transaction) => {
enter: (node) => {
if (node.name === 'Qualifier') {
const qValue = node.node.getChild('QualifierValue');
if (!qValue) {
if (!qValue && tr.isUserEvent('input')) {
foundEmptyQValue = true;
return true;
}
Expand Down

0 comments on commit a6db672

Please sign in to comment.