Skip to content

Commit

Permalink
#84 - Fix issue with File array indexing (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jooseppi12 authored Nov 28, 2022
1 parent 9eb3f92 commit 07847e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebSharper.UI/Attr.Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ module BindVar =
() // This should do nothing, as we should not override the values from the input
let FileGetUnchecked : Get<File array> = fun el ->
let files : FileList = el?files
[| for i in 1..files.Length do yield files.Item(i) |] |> Some
[| for i in 0..files.Length-1 do yield files.Item(i) |] |> Some
let FileApplyUnchecked : Apply<File array> =
ApplyValue FileGetUnchecked FileSetUnchecked

Expand Down

0 comments on commit 07847e1

Please # to comment.