Skip to content

Commit

Permalink
Add comment about input issue
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Oct 15, 2024
1 parent 1cba61e commit de8ec58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vendor/brr_lwd_ui/lib/forms/field.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ let make_input ~(value : Jv.t -> 'a) ?validate ?d ?(at = []) ?ev
in
let validate = Option.value validate ~default:(fun v -> Ok v) in
let on_change, value =
(* TODO this does not work very well: sometime the event don't fire and some
input is missing. *)
make_handler ~value ~value_change_event default_value
in
let ev = `P on_change :: Option.to_list ev in
Expand Down

0 comments on commit de8ec58

Please sign in to comment.