Set reenter: false as it was originally
This commit is contained in:
@ -1776,7 +1776,7 @@ export const modelingMachine = setup({
|
|||||||
'Delete selection': {
|
'Delete selection': {
|
||||||
target: 'Applying selection delete',
|
target: 'Applying selection delete',
|
||||||
guard: 'has valid selection for deletion',
|
guard: 'has valid selection for deletion',
|
||||||
reenter: true,
|
reenter: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
'Text-to-CAD': {
|
'Text-to-CAD': {
|
||||||
@ -2568,7 +2568,6 @@ export const modelingMachine = setup({
|
|||||||
input: ({ event, context }) => {
|
input: ({ event, context }) => {
|
||||||
console.log('event', event)
|
console.log('event', event)
|
||||||
if (event.type !== 'Delete selection') return undefined
|
if (event.type !== 'Delete selection') return undefined
|
||||||
// TODO: there has to be a better way to pass `context` right?
|
|
||||||
if (!context.selectionRanges) return undefined
|
if (!context.selectionRanges) return undefined
|
||||||
return { selection: context.selectionRanges }
|
return { selection: context.selectionRanges }
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user