AAfghahi commented on a change in pull request #17176:
URL: https://github.com/apache/superset/pull/17176#discussion_r737581419



##########
File path: superset-frontend/src/explore/components/controls/TextAreaControl.jsx
##########
@@ -95,20 +76,21 @@ export default class TextAreaControl extends 
React.Component {
           style={style}
           minLines={minLines}
           maxLines={inModal ? 1000 : this.props.maxLines}
-          onChange={this.onAceChangeDebounce}
+          onChange={this.props.onChange}
           width="100%"
           height={`${minLines}em`}
           editorProps={{ $blockScrolling: true }}
-          value={value}
+          defaultValue={this.props.defaultValue}
           readOnly={this.props.readOnly}
+          key={this.props.name}
         />
       );
     }
     return (
       <TextArea
         placeholder={t('textarea')}
         onChange={this.onControlChange.bind(this)}
-        value={value}
+        value={this.props.defaultValue}

Review comment:
       You mentioned this in our pair programming as a potential issue so I 
tested it.  I removed language from where we are invoking it in the 
AlertReportModal and got this
   ![Screen Shot 2021-10-27 at 11 11 15 
AM](https://user-images.githubusercontent.com/48933336/139095572-bd989594-a9f1-45ad-9a13-acf060ad6d11.png)
   
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to