File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 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)
4848import React.Basic.Events (EventFn , SyntheticEvent , unsafeEventFn )
4949import Unsafe.Coerce (unsafeCoerce )
5050import Web.Event.Internal.Types (Event , EventTarget )
51+ import Web.File.FileList (FileList )
5152
5253-- | General event fields
5354
@@ -111,6 +112,9 @@ targetChecked = unsafeEventFn \e -> toMaybe (unsafeCoerce e).target.checked
111112targetValue :: EventFn SyntheticEvent (Maybe String )
112113targetValue = unsafeEventFn \e -> toMaybe (unsafeCoerce e).target.value
113114
115+ targetFiles :: EventFn SyntheticEvent (Maybe FileList )
116+ targetFiles = unsafeEventFn \e -> toMaybe (unsafeCoerce e).target.files
117+
114118timeStamp :: EventFn SyntheticEvent Number
115119timeStamp = unsafeEventFn \e -> (unsafeCoerce e).timeStamp
116120
You can’t perform that action at this time.
0 commit comments