We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bdc19f commit 39d4de8Copy full SHA for 39d4de8
src/components/tag-input.js
@@ -39,12 +39,10 @@ export default class TagInput extends LitElement {
39
const clipboardData = e.clipboardData || window.clipboardData;
40
const pastedData = clipboardData.getData('Text');
41
const pastedArray = pastedData ? pastedData.split(',').filter((v) => v.trim() !== '') : '';
42
-
43
- if(pastedArray) {
+ if (pastedArray) {
44
if (Array.isArray(this.value)) {
45
this.value = [...this.value, ...pastedArray];
46
- }
47
- else {
+ } else {
48
this.value = pastedArray;
49
}
50
0 commit comments