From 07847e1f308c01fcb59ca508cf9eebee74886ef8 Mon Sep 17 00:00:00 2001 From: Jooseppi12 Date: Mon, 28 Nov 2022 12:33:57 +0100 Subject: [PATCH] #84 - Fix issue with File array indexing (#254) --- WebSharper.UI/Attr.Client.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebSharper.UI/Attr.Client.fs b/WebSharper.UI/Attr.Client.fs index 696a1b3..57f9506 100644 --- a/WebSharper.UI/Attr.Client.fs +++ b/WebSharper.UI/Attr.Client.fs @@ -348,7 +348,7 @@ module BindVar = () // This should do nothing, as we should not override the values from the input let FileGetUnchecked : Get = 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 = ApplyValue FileGetUnchecked FileSetUnchecked