File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/core/primitives/event-dispatch/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,8 @@ export function createMouseSpecialEvent(e: Event, target: Element): Event {
418418 // this event into a pseudo-real mouseenter/mouseleave event by adjusting
419419 // its type.
420420 //
421- const copy : { - readonly [ P in keyof Event ] ?: Event [ P ] } = { } ;
421+ const copy : { - readonly [ P in keyof Event ] ?: Event [ P ] } &
422+ { '_originalEvent' ?: Event } = { } ;
422423 for ( const property in e ) {
423424 if ( property === 'srcElement' || property === 'target' ) {
424425 continue ;
@@ -444,6 +445,7 @@ export function createMouseSpecialEvent(e: Event, target: Element): Event {
444445 }
445446 copy [ 'target' ] = copy [ 'srcElement' ] = target ;
446447 copy [ 'bubbles' ] = false ;
448+ copy [ '_originalEvent' ] = e ;
447449 return copy as Event ;
448450}
449451
You can’t perform that action at this time.
0 commit comments