pass a copy when opening dialog
otherwise, any changes the dialog makes will reflect in the calling view's object
This commit is contained in:
@@ -35,6 +35,7 @@ async function onSend() {
|
||||
|
||||
defineExpose({
|
||||
async open(u) {
|
||||
u = JSON.parse(JSON.stringify(u)); // make a copy
|
||||
user.value = u;
|
||||
formError.value = '';
|
||||
email.value = u.fallbackEmail || u.email;
|
||||
|
||||
Reference in New Issue
Block a user