Fix leaving a group
There's still an issue because the call is made twice, but at least it works Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -137,7 +137,9 @@ const close = () => {
|
||||
*/
|
||||
const cancel = (source: string) => {
|
||||
emit("cancel", source);
|
||||
props.onCancel?.apply(null, [source]);
|
||||
if (props?.onCancel) {
|
||||
props?.onCancel(source);
|
||||
}
|
||||
close();
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user