Skip to content

Commit

Permalink
fix(component): [modal] repeatedly dispatch the close event (#2573)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Jan 2, 2025
1 parent a39c4bd commit 4e69ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderless/src/modal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const handleEvent =
params.options = options
}

emit(type, params, event)
type !== 'close' && emit(type, params, event)
events[type] && events[type].call(parent, params)
api.close(type)
}
Expand Down

0 comments on commit 4e69ee3

Please sign in to comment.