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

Commit 44daf14

Browse files
committed
Prevent auto-translation within composer
Fixes: element-hq/element-web#25624
1 parent d9d5387 commit 44daf14

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/views/rooms/BasicMessageComposer.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
832832
dir="auto"
833833
aria-disabled={this.props.disabled}
834834
data-testid="basicmessagecomposer"
835+
translate="no"
835836
/>
836837
</div>
837838
);

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

+2
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
502502
role="textbox"
503503
style="--placeholder: 'Send a message…';"
504504
tabindex="0"
505+
translate="no"
505506
>
506507
<div>
507508
<br />
@@ -764,6 +765,7 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
764765
role="textbox"
765766
style="--placeholder: 'Send a message…';"
766767
tabindex="0"
768+
translate="no"
767769
>
768770
<div>
769771
<br />

0 commit comments

Comments
 (0)