-
Notifications
You must be signed in to change notification settings - Fork 40
Update DOM so that <form> has various 'on*' props #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update DOM so that <form> has various 'on*' props #48
Conversation
src/React/Basic/DOM.purs
Outdated
, onChange :: EventHandler | ||
, onInput :: String | ||
, onInvalid :: String | ||
, onSubmit :: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be an EventHandler
? (and I think also the other ones?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time to PR upstream again probably 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, in the upstream there was no place to define these things AFAIK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Indeed we need a small addition to types
variable in codegen.
a6d0b78
to
5bcb381
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @zudov 👏
I left a small comment, but it's good by me
codegen/index.js
Outdated
"onClick": "EventHandler", | ||
"onInput": "EventHandler", | ||
"onInvalid": "EventHandler", | ||
"onSubmit": "EventHandler", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if Github is displaying them in a weird way or they are not aligned properly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wtf tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
omg, somehow they slipped in
5bcb381
to
3591388
Compare
The |
Simply rerunning codegen with |
Oh right, sorry. Looks good. |
Fixes #45