Fixes
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
application='self.application'
|
||||
)
|
||||
input.tags-input(
|
||||
ng-blur='self.saveTagsFromStrings()',
|
||||
ng-blur='self.onTagsInputBlur()',
|
||||
ng-disabled='self.noteLocked',
|
||||
ng-if='!(self.state.tagsComponent && self.state.tagsComponent.active)',
|
||||
ng-keyup='$event.keyCode == 13 && $event.target.blur();',
|
||||
|
||||
@@ -447,7 +447,6 @@ class EditorViewCtrl extends PureViewCtrl implements EditorViewScope {
|
||||
return;
|
||||
}
|
||||
if (this.editor.isTemplateNote) {
|
||||
console.log("is template");
|
||||
await this.editor.insertTemplatedNote();
|
||||
if (this.appState.selectedTag) {
|
||||
await this.application.changeItem(
|
||||
@@ -793,6 +792,11 @@ class EditorViewCtrl extends PureViewCtrl implements EditorViewScope {
|
||||
this.saveTagsFromStrings(strings);
|
||||
}
|
||||
|
||||
onTagsInputBlur() {
|
||||
this.saveTagsFromStrings();
|
||||
this.focusEditor();
|
||||
}
|
||||
|
||||
public async saveTagsFromStrings(strings?: string[]) {
|
||||
if (
|
||||
!strings
|
||||
|
||||
Reference in New Issue
Block a user