summaryrefslogtreecommitdiff
path: root/src/components/upload
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/upload')
-rw-r--r--src/components/upload/SourceInput.tsx3
-rw-r--r--src/components/upload/TagsInput.tsx1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/upload/SourceInput.tsx b/src/components/upload/SourceInput.tsx
index c93c4b6..fbc8f52 100644
--- a/src/components/upload/SourceInput.tsx
+++ b/src/components/upload/SourceInput.tsx
@@ -1,5 +1,6 @@
'use client';
import { Input } from '@/components/ui';
+import React from 'react';
export function SourceInput() {
return (
@@ -7,7 +8,7 @@ export function SourceInput() {
<span>ИСТОЧНИК</span>
<Input
name="source"
- onKeyDown={(e) => {
+ onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.key === 'Enter') {
e.preventDefault();
}
diff --git a/src/components/upload/TagsInput.tsx b/src/components/upload/TagsInput.tsx
index 1b88fa2..cdff794 100644
--- a/src/components/upload/TagsInput.tsx
+++ b/src/components/upload/TagsInput.tsx
@@ -72,7 +72,6 @@ class RemoveTag extends React.Component {
onClick={onRemove}
className={className}
onFocus={(e) => {
- // Это говно здесь из-за того, что без него после удаления бэкспейсом, фокусится крестик
document.getElementById('tags-input')?.focus();
}}
>