Skip to content

Commit 1832316

Browse files
committed
fix(CFormInput): ReferenceError: File is not defined
1 parent 67820ec commit 1832316

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/coreui-vue/src/components/form/CFormInput.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { defineComponent, h } from 'vue'
22
import { CFormControlWrapper } from './CFormControlWrapper'
33

4+
export const File = typeof window !== 'undefined' ? window.File : class File extends Object {}
5+
46
const CFormInput = defineComponent({
57
name: 'CFormInput',
68
props: {

0 commit comments

Comments
 (0)