File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ import Effect.Unsafe (unsafePerformEffect)
48
48
import React.Basic.Events (EventFn , SyntheticEvent , unsafeEventFn )
49
49
import Unsafe.Coerce (unsafeCoerce )
50
50
import Web.Event.Internal.Types (Event , EventTarget )
51
+ import Web.File.FileList (FileList )
51
52
52
53
-- | General event fields
53
54
@@ -111,6 +112,9 @@ targetChecked = unsafeEventFn \e -> toMaybe (unsafeCoerce e).target.checked
111
112
targetValue :: EventFn SyntheticEvent (Maybe String )
112
113
targetValue = unsafeEventFn \e -> toMaybe (unsafeCoerce e).target.value
113
114
115
+ targetFiles :: EventFn SyntheticEvent (Maybe FileList )
116
+ targetFiles = unsafeEventFn \e -> toMaybe (unsafeCoerce e).target.files
117
+
114
118
timeStamp :: EventFn SyntheticEvent Number
115
119
timeStamp = unsafeEventFn \e -> (unsafeCoerce e).timeStamp
116
120
You can’t perform that action at this time.
0 commit comments