diff --git a/app/scripts/views/fields/field-view-otp.js b/app/scripts/views/fields/field-view-otp.js index 7c38692f..48c8a21f 100644 --- a/app/scripts/views/fields/field-view-otp.js +++ b/app/scripts/views/fields/field-view-otp.js @@ -33,6 +33,10 @@ class FieldViewOtp extends FieldViewText { return value && value.url; } + getTextValue() { + return this.otpValue; + } + render() { super.render(); this.fieldOpacity = null; diff --git a/app/scripts/views/fields/field-view.js b/app/scripts/views/fields/field-view.js index 6e69412f..432fb896 100644 --- a/app/scripts/views/fields/field-view.js +++ b/app/scripts/views/fields/field-view.js @@ -134,7 +134,7 @@ class FieldView extends View { return; } const dt = e.dataTransfer; - const txtval = this.value.isProtected ? this.value.getText() : this.value; + const txtval = this.getTextValue(); if (this.valueEl[0].tagName.toLowerCase() === 'a') { dt.setData('text/uri-list', txtval); } @@ -345,6 +345,10 @@ class FieldView extends View { break; } } + + getTextValue() { + return this.value.isProtected ? this.value.getText() : this.value; + } } export { FieldView }; diff --git a/release-notes.md b/release-notes.md index 9492ac45..d7cf298d 100644 --- a/release-notes.md +++ b/release-notes.md @@ -12,6 +12,7 @@ Release notes `*` fix #1348: fixed password generation entropy `-` fix #1385: fixed a file watcher error on network locations `-` fix #1391: passwords imported from CSV were not hidden +`-` fix #1387: fixed drag-drop for otp fields ##### v1.12.3 (2019-11-06) `-` fix #1335: removed the menubar on Windows and Linux