Merge pull request #15948 from ramonlsouza/copy-paste-workaround
fix: copy & paste does not work if whiteboard is visible
This commit is contained in:
commit
ed24cdddde
@ -226,6 +226,9 @@ class MessageForm extends PureComponent {
|
||||
onChange={this.handleMessageChange}
|
||||
onKeyDown={this.handleMessageKeyDown}
|
||||
async
|
||||
onPaste={(e) => { e.stopPropagation(); }}
|
||||
onCut={(e) => { e.stopPropagation(); }}
|
||||
onCopy={(e) => { e.stopPropagation(); }}
|
||||
/>
|
||||
<Styled.SendButton
|
||||
hideLabel
|
||||
|
@ -351,6 +351,9 @@ class MessageForm extends PureComponent {
|
||||
value={message}
|
||||
onChange={this.handleMessageChange}
|
||||
onKeyDown={this.handleMessageKeyDown}
|
||||
onPaste={(e) => { e.stopPropagation(); }}
|
||||
onCut={(e) => { e.stopPropagation(); }}
|
||||
onCopy={(e) => { e.stopPropagation(); }}
|
||||
async
|
||||
/>
|
||||
{ENABLE_EMOJI_PICKER && this.renderEmojiButton()}
|
||||
|
@ -115,6 +115,9 @@ class ExternalVideoModal extends Component {
|
||||
placeholder={intl.formatMessage(intlMessages.urlInput)}
|
||||
disabled={sharing}
|
||||
aria-describedby="exernal-video-note"
|
||||
onPaste={(e) => { e.stopPropagation(); }}
|
||||
onCut={(e) => { e.stopPropagation(); }}
|
||||
onCopy={(e) => { e.stopPropagation(); }}
|
||||
/>
|
||||
</label>
|
||||
<Styled.ExternalVideoNote id="external-video-note">
|
||||
|
@ -544,6 +544,9 @@ class Poll extends Component {
|
||||
data-test="pollOptionItem"
|
||||
onChange={(e) => this.handleInputChange(e, i)}
|
||||
maxLength={MAX_INPUT_CHARS}
|
||||
onPaste={(e) => { e.stopPropagation(); }}
|
||||
onCut={(e) => { e.stopPropagation(); }}
|
||||
onCopy={(e) => { e.stopPropagation(); }}
|
||||
/>
|
||||
{optList.length > MIN_OPTIONS_LENGTH && (
|
||||
<Styled.DeletePollOptionButton
|
||||
@ -785,7 +788,9 @@ class Poll extends Component {
|
||||
data-test="pollQuestionArea"
|
||||
value={customInput ? questionAndOptions : question}
|
||||
onChange={(e) => this.handleTextareaChange(e)}
|
||||
onPaste={() => this.setState({ isPasting: true })}
|
||||
onPaste={(e) => { e.stopPropagation(); this.setState({ isPasting: true }); }}
|
||||
onCut={(e) => { e.stopPropagation(); }}
|
||||
onCopy={(e) => { e.stopPropagation(); }}
|
||||
onKeyPress={(event) => {
|
||||
if (event.key === 'Enter' && customInput) {
|
||||
this.handlePollLetterOptions();
|
||||
|
@ -194,6 +194,9 @@ class Polling extends Component {
|
||||
placeholder={intl.formatMessage(intlMessages.responsePlaceholder)}
|
||||
maxLength={MAX_INPUT_CHARS}
|
||||
ref={(r) => { this.responseInput = r; }}
|
||||
onPaste={(e) => { e.stopPropagation(); }}
|
||||
onCut={(e) => { e.stopPropagation(); }}
|
||||
onCopy={(e) => { e.stopPropagation(); }}
|
||||
/>
|
||||
<Styled.SubmitVoteButton
|
||||
data-test="submitAnswer"
|
||||
|
Loading…
Reference in New Issue
Block a user