Skip to content

Commit bcc117f

Browse files
committed
fix(VFileUpload): lint and build errors
1 parent 3eed64c commit bcc117f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vuetify/src/components/VFileInput/VFileInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export const VFileInput = genericComponent<VFileInputSlots>()({
9494

9595
setup (props, { attrs, emit, slots }) {
9696
const { t } = useLocale()
97+
const inputRef = ref<HTMLInputElement>()
9798
const model = useProxiedModel(
9899
props,
99100
'modelValue',
@@ -125,7 +126,6 @@ export const VFileInput = genericComponent<VFileInputSlots>()({
125126
})
126127
const vInputRef = ref<VInput>()
127128
const vFieldRef = ref<VInput>()
128-
const inputRef = ref<HTMLInputElement>()
129129
const isActive = toRef(() => isFocused.value || props.active)
130130
const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant))
131131
function onFocus () {

packages/vuetify/src/labs/VFileUpload/VFileUpload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const VFileUpload = genericComponent<VFileUploadSlots>()({
9999
setup (props, { attrs, slots }) {
100100
const { t } = useLocale()
101101
const { densityClasses } = useDensity(props)
102+
const inputRef = ref<HTMLInputElement | null>(null)
102103
const model = useProxiedModel(
103104
props,
104105
'modelValue',
@@ -113,7 +114,6 @@ export const VFileUpload = genericComponent<VFileUploadSlots>()({
113114

114115
const dragOver = shallowRef(false)
115116
const vSheetRef = ref<InstanceType<typeof VSheet> | null>(null)
116-
const inputRef = ref<HTMLInputElement | null>(null)
117117

118118
onMounted(() => {
119119
vSheetRef.value?.$el.addEventListener('dragover', onDragOver)

0 commit comments

Comments
 (0)