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}
|
onChange={this.handleMessageChange}
|
||||||
onKeyDown={this.handleMessageKeyDown}
|
onKeyDown={this.handleMessageKeyDown}
|
||||||
async
|
async
|
||||||
|
onPaste={(e) => { e.stopPropagation(); }}
|
||||||
|
onCut={(e) => { e.stopPropagation(); }}
|
||||||
|
onCopy={(e) => { e.stopPropagation(); }}
|
||||||
/>
|
/>
|
||||||
<Styled.SendButton
|
<Styled.SendButton
|
||||||
hideLabel
|
hideLabel
|
||||||
|
@ -351,6 +351,9 @@ class MessageForm extends PureComponent {
|
|||||||
value={message}
|
value={message}
|
||||||
onChange={this.handleMessageChange}
|
onChange={this.handleMessageChange}
|
||||||
onKeyDown={this.handleMessageKeyDown}
|
onKeyDown={this.handleMessageKeyDown}
|
||||||
|
onPaste={(e) => { e.stopPropagation(); }}
|
||||||
|
onCut={(e) => { e.stopPropagation(); }}
|
||||||
|
onCopy={(e) => { e.stopPropagation(); }}
|
||||||
async
|
async
|
||||||
/>
|
/>
|
||||||
{ENABLE_EMOJI_PICKER && this.renderEmojiButton()}
|
{ENABLE_EMOJI_PICKER && this.renderEmojiButton()}
|
||||||
|
@ -115,6 +115,9 @@ class ExternalVideoModal extends Component {
|
|||||||
placeholder={intl.formatMessage(intlMessages.urlInput)}
|
placeholder={intl.formatMessage(intlMessages.urlInput)}
|
||||||
disabled={sharing}
|
disabled={sharing}
|
||||||
aria-describedby="exernal-video-note"
|
aria-describedby="exernal-video-note"
|
||||||
|
onPaste={(e) => { e.stopPropagation(); }}
|
||||||
|
onCut={(e) => { e.stopPropagation(); }}
|
||||||
|
onCopy={(e) => { e.stopPropagation(); }}
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<Styled.ExternalVideoNote id="external-video-note">
|
<Styled.ExternalVideoNote id="external-video-note">
|
||||||
|
@ -544,6 +544,9 @@ class Poll extends Component {
|
|||||||
data-test="pollOptionItem"
|
data-test="pollOptionItem"
|
||||||
onChange={(e) => this.handleInputChange(e, i)}
|
onChange={(e) => this.handleInputChange(e, i)}
|
||||||
maxLength={MAX_INPUT_CHARS}
|
maxLength={MAX_INPUT_CHARS}
|
||||||
|
onPaste={(e) => { e.stopPropagation(); }}
|
||||||
|
onCut={(e) => { e.stopPropagation(); }}
|
||||||
|
onCopy={(e) => { e.stopPropagation(); }}
|
||||||
/>
|
/>
|
||||||
{optList.length > MIN_OPTIONS_LENGTH && (
|
{optList.length > MIN_OPTIONS_LENGTH && (
|
||||||
<Styled.DeletePollOptionButton
|
<Styled.DeletePollOptionButton
|
||||||
@ -785,7 +788,9 @@ class Poll extends Component {
|
|||||||
data-test="pollQuestionArea"
|
data-test="pollQuestionArea"
|
||||||
value={customInput ? questionAndOptions : question}
|
value={customInput ? questionAndOptions : question}
|
||||||
onChange={(e) => this.handleTextareaChange(e)}
|
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) => {
|
onKeyPress={(event) => {
|
||||||
if (event.key === 'Enter' && customInput) {
|
if (event.key === 'Enter' && customInput) {
|
||||||
this.handlePollLetterOptions();
|
this.handlePollLetterOptions();
|
||||||
|
@ -194,6 +194,9 @@ class Polling extends Component {
|
|||||||
placeholder={intl.formatMessage(intlMessages.responsePlaceholder)}
|
placeholder={intl.formatMessage(intlMessages.responsePlaceholder)}
|
||||||
maxLength={MAX_INPUT_CHARS}
|
maxLength={MAX_INPUT_CHARS}
|
||||||
ref={(r) => { this.responseInput = r; }}
|
ref={(r) => { this.responseInput = r; }}
|
||||||
|
onPaste={(e) => { e.stopPropagation(); }}
|
||||||
|
onCut={(e) => { e.stopPropagation(); }}
|
||||||
|
onCopy={(e) => { e.stopPropagation(); }}
|
||||||
/>
|
/>
|
||||||
<Styled.SubmitVoteButton
|
<Styled.SubmitVoteButton
|
||||||
data-test="submitAnswer"
|
data-test="submitAnswer"
|
||||||
|
Loading…
Reference in New Issue
Block a user