@@ -169,7 +169,7 @@ export const machine = createMachine({
169
169
} ,
170
170
"TRIGGER.LEAVE" : {
171
171
target : "closed" ,
172
- actions : [ "clearValue" , "clearPreviousValue" , " clearPointerMoveRef"] ,
172
+ actions : [ "clearValue" , "clearPointerMoveRef" ] ,
173
173
} ,
174
174
"CONTENT.FOCUS" : {
175
175
actions : [ "focusContent" , "restoreTabOrder" ] ,
@@ -199,7 +199,7 @@ export const machine = createMachine({
199
199
} ,
200
200
"CONTENT.DISMISS" : {
201
201
target : "closed" ,
202
- actions : [ "focusTriggerIfNeeded" , "clearValue" , "clearPreviousValue" , " clearPointerMoveRef"] ,
202
+ actions : [ "focusTriggerIfNeeded" , "clearValue" , "clearPointerMoveRef" ] ,
203
203
} ,
204
204
"CONTENT.ENTER" : {
205
205
actions : [ "restoreTabOrder" ] ,
@@ -225,7 +225,7 @@ export const machine = createMachine({
225
225
} ,
226
226
"CONTENT.DISMISS" : {
227
227
target : "closed" ,
228
- actions : [ "focusTriggerIfNeeded" , "clearValue" , "clearPreviousValue" , " clearPointerMoveRef"] ,
228
+ actions : [ "focusTriggerIfNeeded" , "clearValue" , "clearPointerMoveRef" ] ,
229
229
} ,
230
230
"CONTENT.ENTER" : {
231
231
target : "open" ,
@@ -398,7 +398,7 @@ export const machine = createMachine({
398
398
context . set ( "previousValue" , null )
399
399
} ,
400
400
clearValue ( { context } ) {
401
- context . set ( "previousValue" , context . get ( "value" ) )
401
+ context . set ( "previousValue" , null )
402
402
context . set ( "value" , null )
403
403
} ,
404
404
setValue ( { context, event } ) {
0 commit comments