You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be better to have a dedicated type for each html input. So instead of HTMLInput + InputButton you get HTMLInputButton. I suggest this because right now it's possible to make combinations that are not valid. Thus we have types that are not correct by construction.
https://pursuit.purescript.org/packages/purescript-dom-indexed/10.0.0/docs/DOM.HTML.Indexed#t:HTMLinput
Rather than having one input type which takes this type to set it's type https://pursuit.purescript.org/packages/purescript-dom-indexed/12.0.0/docs/DOM.HTML.Indexed.InputType#t:InputType
It would be better to have a dedicated type for each html input. So instead of
HTMLInput + InputButton
you getHTMLInputButton
. I suggest this because right now it's possible to make combinations that are not valid. Thus we have types that are not correct by construction.Example of invalid combination.
HTMLInput
has attributeonSearch
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/search_event This attribute is only valid when html input is of typesearch
. At the moment theonSearch
event is allowed by any input type.The text was updated successfully, but these errors were encountered: