Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 22077c5

Browse files
authored
Prevent auto-translation within composer (#11114)
Fixes: element-hq/element-web#25624
1 parent 83ee194 commit 22077c5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/views/rooms/BasicMessageComposer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
850850
dir="auto"
851851
aria-disabled={this.props.disabled}
852852
data-testid="basicmessagecomposer"
853+
translate="no"
853854
/>
854855
</div>
855856
);

test/components/structures/__snapshots__/RoomView-test.tsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
505505
role="textbox"
506506
style="--placeholder: 'Send a message…';"
507507
tabindex="0"
508+
translate="no"
508509
>
509510
<div>
510511
<br />
@@ -768,6 +769,7 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
768769
role="textbox"
769770
style="--placeholder: 'Send a message…';"
770771
tabindex="0"
772+
translate="no"
771773
>
772774
<div>
773775
<br />

0 commit comments

Comments
 (0)