1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[PM-2043] Fix additional space and characters copied to clipboard (#5312)

* Change appSelectCopy to accept a dynamic input on what to copy

* Renamed select-copy directive to copy-text directive to be more accurate with the new behaviour

Signed-off-by: Andre Rosado <arosado@bitwarden.com>

* Moved CopyTextDirective on jslib module to be in alphabetic ordering

---------

Signed-off-by: Andre Rosado <arosado@bitwarden.com>
Co-authored-by: Andre Rosado <arosado@bitwarden.com>
This commit is contained in:
Sammy Chang
2023-07-17 12:00:50 -04:00
committed by GitHub
parent c3adf96da7
commit 906c11acb1
11 changed files with 49 additions and 50 deletions

View File

@@ -8,7 +8,7 @@
<div class="card-body">
<bit-color-password
[password]="type === 'password' ? password : username"
appSelectCopy
[appCopyText]="type === 'password' ? password : username"
></bit-color-password>
</div>
</div>

View File

@@ -10,7 +10,7 @@
<bit-color-password
[password]="h.password"
class="tw-block tw-font-mono"
appSelectCopy
[appCopyText]="h.password"
></bit-color-password>
<small bitTypography="body2" class="tw-text-muted">
{{ h.date | date : "medium" }}