@@ -227,17 +227,15 @@ const onAddConfirm = () => {
tag = editTag
}
if (tag) {
- // delete tag.__temp
-
- if (tag) {
- if (isAdd) {
- tag.__temp = true
- // tag._add = true
- isAdd = false
- }
- notify.value = tag
+ if (isAdd) {
+ tag.__temp = true
+ // tag._add = true
+ isAdd = false
+
+ notify.value = tag
+ } else {
+ onAddCancel()
editTag = null