about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/autosuggest_input.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-01-24 18:49:21 +0100
committerGitHub <noreply@github.com>2023-01-24 18:49:21 +0100
commit83a8efa9cad7384e6659bd6c17e4865405f51577 (patch)
tree39821e531fdd58105011e206cd3d65f259c3e4c5 /app/javascript/mastodon/components/autosuggest_input.js
parentdcdf081c6f2e896062d22367025cd94b6897118a (diff)
Add lang attribute to compose textarea and CW field (#23240)
Fixes #19858
Diffstat (limited to 'app/javascript/mastodon/components/autosuggest_input.js')
-rw-r--r--app/javascript/mastodon/components/autosuggest_input.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/autosuggest_input.js b/app/javascript/mastodon/components/autosuggest_input.js
index 12d44b5d0..b8f8c6f45 100644
--- a/app/javascript/mastodon/components/autosuggest_input.js
+++ b/app/javascript/mastodon/components/autosuggest_input.js
@@ -50,6 +50,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
     id: PropTypes.string,
     searchTokens: PropTypes.arrayOf(PropTypes.string),
     maxLength: PropTypes.number,
+    lang: PropTypes.string,
   };
 
   static defaultProps = {
@@ -185,7 +186,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
   }
 
   render () {
-    const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus, className, id, maxLength } = this.props;
+    const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus, className, id, maxLength, lang } = this.props;
     const { suggestionsHidden } = this.state;
 
     return (
@@ -210,6 +211,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
             id={id}
             className={className}
             maxLength={maxLength}
+            lang={lang}
           />
         </label>