File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export default {
104
104
},
105
105
categoryInput: null ,
106
106
titleEditableInternal: false ,
107
- newTtitle : ' ' ,
107
+ newTitle : ' ' ,
108
108
}
109
109
},
110
110
@@ -117,11 +117,18 @@ export default {
117
117
return this .titleEditableInternal && ! this .note .readonly
118
118
},
119
119
set (newValue ) {
120
+ if (newValue) {
121
+ this .newTitle = this .title
122
+ }
120
123
this .titleEditableInternal = newValue
121
124
}
122
125
},
123
126
title () {
124
- return this .note ? .title || ' '
127
+ if (! this .titleEditable ) {
128
+ return this .note ? .title || ' '
129
+ } else {
130
+ return this .newTitle || ' '
131
+ }
125
132
},
126
133
category () {
127
134
return this .note ? .category || ' '
@@ -198,10 +205,8 @@ export default {
198
205
})
199
206
.finally (() => {
200
207
this .loading .title = false
201
- this .newTitle = this .title
202
208
})
203
209
}
204
- this .newTitle = this .title
205
210
},
206
211
207
212
onSaveCategory (category ) {
You can’t perform that action at this time.
0 commit comments