Skip to content

Replace <InputFile> with <FluentInputFile>, got "Microsoft.JSInterop.JSException: Cannot read properties of undefined" #2375

Answered by dvoituron
andrewwang1tw asked this question in Q&A
Discussion options

You must be logged in to vote

Can you use <FluentInputFile Id="my-id" and get a reference to the InputFile element using the JavaScript document.getElementById('my-id')

I think that the @ref doesn't reference the InputFile element.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrewwang1tw
Comment options

Answer selected by andrewwang1tw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants