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:
@@ -34,7 +34,7 @@ function onAdd () {
|
||||
}
|
||||
|
||||
function onEdit(domain) {
|
||||
domainDialog.value.open(domain);
|
||||
domainDialog.value.open(domain); // pass a copy to prevent the dialog from mutating
|
||||
}
|
||||
|
||||
const inputDialog = useTemplateRef('inputDialog');
|
||||
|
||||
Reference in New Issue
Block a user