Skip to content

Commit 898db5b

Browse files
committed
Add some missing DOM props
1 parent 7dbcc93 commit 898db5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jscomp/others/jsxDOM.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ type domProps = {
144144
[@ns.optional];
145145
contextMenu: string
146146
[@ns.optional];
147+
dataTestId: string
148+
[@ns.optional] [@bs.as "data-testid"];
147149
dir: string (* "ltr", "rtl" or "auto" *)
148150
[@ns.optional];
149151
draggable: bool
@@ -398,10 +400,14 @@ type domProps = {
398400
onBlur: JsxEvent.Focus.t -> unit
399401
[@ns.optional];
400402
(* Form events *)
403+
onBeforeInput: JsxEvent.Form.t -> unit
404+
[@ns.optional];
401405
onChange: JsxEvent.Form.t -> unit
402406
[@ns.optional];
403407
onInput: JsxEvent.Form.t -> unit
404408
[@ns.optional];
409+
onReset: JsxEvent.Form.t -> unit
410+
[@ns.optional];
405411
onSubmit: JsxEvent.Form.t -> unit
406412
[@ns.optional];
407413
onInvalid: JsxEvent.Form.t -> unit

0 commit comments

Comments
 (0)