File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
packages/vue-final-modal/src Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ function createInternalVfm(vfm: Vfm) {
9393 }
9494 } ,
9595 resolvedClosed ( index : number ) {
96+ if ( ! dynamicModals [ index ] . keepAlive )
97+ dynamicModals . splice ( index , 1 )
9698 dynamicModals [ index ] ?. resolveClosed ?.( )
9799 } ,
98100 resolvedOpened ( index : number ) {
Original file line number Diff line number Diff line change @@ -105,11 +105,7 @@ export function useModal<P = InstanceType<typeof VueFinalModal>['$props']>(_opti
105105
106106 options . modelValue = false
107107 return new Promise ( ( resolve ) => {
108- options . resolveClosed = ( ) => {
109- if ( ! options . keepAlive )
110- destroy ( )
111- resolve ( 'closed' )
112- }
108+ options . resolveClosed = ( ) => resolve ( 'closed' )
113109 } )
114110 }
115111
You can’t perform that action at this time.
0 commit comments