return focus back to note detail after quitting add link dialog

This commit is contained in:
zadam 2019-03-07 20:45:32 +01:00
parent fe86c09f22
commit ecbaffa5f3

View File

@ -137,6 +137,10 @@ function linkTypeChanged() {
$linkTypes.change(linkTypeChanged);
// return back focus to note text detail after quitting add link
// the problem is that cursor position is reset
$dialog.on("hidden.bs.modal", () => noteDetailText.focus());
export default {
showDialog
};