mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Enforce multiline on key-value editor (Fixes #745)
This commit is contained in:
parent
e57bc871f2
commit
f746eff4ca
3
.github/stale.yml
vendored
3
.github/stale.yml
vendored
@ -2,9 +2,10 @@ daysUntilStale: 60
|
||||
daysUntilClose: 7
|
||||
exemptLabels:
|
||||
- High Priority
|
||||
- Needs PR
|
||||
- Accepted
|
||||
- Help Wanted
|
||||
- Blocked
|
||||
- Bug
|
||||
staleLabel: Stale
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
|
@ -62,6 +62,10 @@ class KeyValueEditorRow extends PureComponent {
|
||||
}
|
||||
|
||||
_handleValuePaste (e) {
|
||||
if (!this.props.allowMultiline) {
|
||||
return;
|
||||
}
|
||||
|
||||
const value = e.clipboardData.getData('text/plain');
|
||||
if (value && value.includes('\n')) {
|
||||
e.preventDefault();
|
||||
|
Loading…
Reference in New Issue
Block a user