Merge pull request #1320 from bitwarden/Bug.CannotSelectTextFromNoteField

Addressed issue #1269
This commit is contained in:
Addison Beck 2020-07-08 14:37:51 -05:00 committed by GitHub
commit abded9afcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -17,15 +17,16 @@
<div class="box-content">
<div class="box-content-row">
<span class="row-label">{{'name' | i18n}}</span>
{{cipher.name}}
<input type="text" [value]="cipher.name" readonly aria-readonly="true"/>
</div>
<!-- Login -->
<div *ngIf="cipher.login">
<div class="box-content-row box-content-row-flex" *ngIf="cipher.login.username">
<div class="row-main">
<span class="row-label draggable" draggable="true"
(dragstart)="setTextDataOnDrag($event, cipher.login.username)">{{'username' | i18n}}</span>
{{cipher.login.username}}
(dragstart)="setTextDataOnDrag($event, cipher.login.username)">{{'username' | i18n}}
</span>
<input type="text" [value]="cipher.login.username" readonly aria-readonly="true" />
</div>
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick appA11yTitle="{{'copyUsername' | i18n}}"
@ -187,7 +188,9 @@
<div class="row-main">
<span class="row-label" *ngIf="!u.isWebsite">{{'uri' | i18n}}</span>
<span class="row-label" *ngIf="u.isWebsite">{{'website' | i18n}}</span>
<span title="{{u.uri}}">{{u.hostnameOrUri}}</span>
<span title="{{u.uri}}">
<input type="text" [value]="u.hostnameOrUri" readonly aria-readonly="true" />
</span>
</div>
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick appA11yTitle="{{'launch' | i18n}}" *ngIf="u.canLaunch"
@ -207,7 +210,9 @@
{{'notes' | i18n}}
</div>
<div class="box-content">
<div class="box-content-row pre-wrap">{{cipher.notes}}</div>
<div class="box-content-row">
<textarea [value]="cipher.notes" rows="6" readonly aria-readonly="true"></textarea>
</div>
</div>
</div>
<div class="box" *ngIf="cipher.hasFields">