Skip to content

Commit

Permalink
[PM-13027] Allowing longpress copy on textfields (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-rosado authored Oct 15, 2024
1 parent 5a47964 commit 87640a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct BitwardenTextValueField<AccessoryContent>: View where AccessoryContent: V
titleAccessibilityIdentifier: String? = "ItemName",
value: String,
valueAccessibilityIdentifier: String? = "ItemValue",
textSelectionEnabled: Bool = false,
textSelectionEnabled: Bool = true,
@ViewBuilder accessoryContent: () -> AccessoryContent
) {
self.textSelectionEnabled = textSelectionEnabled
Expand Down Expand Up @@ -92,7 +92,7 @@ extension BitwardenTextValueField where AccessoryContent == EmptyView {
titleAccessibilityIdentifier: String? = "ItemName",
value: String,
valueAccessibilityIdentifier: String? = "ItemValue",
textSelectionEnabled: Bool = false
textSelectionEnabled: Bool = true
) {
self.init(
title: title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ struct ViewItemDetailsView: View { // swiftlint:disable:this type_body_length
@ViewBuilder private var notesSection: some View {
if !store.state.notes.isEmpty {
SectionView(Localizations.notes) {
BitwardenTextValueField(value: store.state.notes, textSelectionEnabled: true)
BitwardenTextValueField(value: store.state.notes)
}
.accessibilityElement(children: .contain)
.accessibilityIdentifier("CipherNotesLabel")
Expand Down

0 comments on commit 87640a9

Please sign in to comment.