-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
onsubmit should be a SubmitEvent, not a FocusEvent #2691
Comments
Agreed. I think most of the event types are sourced from the MDN docs, which unfortunately don't appear to very trustworthy in this case. |
Would this be the spec we should reference? Also what would it take to correct this? I'd love to help. |
@Dom-1 oh yeah, that spec should serve fine. Following the links on the Event handler event types also takes one directly to the event type as specified by IDL. For reference, the event types are implemented in yew/packages/yew/src/html/listener/events.rs Lines 75 to 213 in 3758e6d
|
@WorldSEnder From my understanding, the current state of the issue is that web_sys doesn't provide the entirety of the Event types which we require for our event handlers. Should we consider building those into Yew for the sake of cohesion, or should work be done in web_sys to provide the necessary Event types? |
@Dom-1 I hope we see a merge and web-sys release including rustwasm/wasm-bindgen#2922 before yew 0.20, otherwise I think the best strategy is to fallback to the unspecific |
Seems like it has been merged and released as part of 0.2.81 |
Any issues with me (attempting) to pick this up? Would be my first non-documentation PR so I won't be as good as y'all 😝 |
@Dom-1 are you still on this? I think the prerequisites are in place now |
My apologies, things have picked up in pace at my work and I haven't had the time to commit. If someone else would like to pick it up that's alright with me. From what I understand, all you have to do is change Also I'm not sure if this is the problem of the person sending this PR or perhaps another issue we should open, but the other event types should be checked for correctness. |
@Dom-1 ty for the response, no worries. @SpanishPear if you want to take it up, go ahead. Double-checking the other types mentioned in the spec would be appreciated but just correcting the |
It seems @SpanishPear isn't taking up on this so I'll take this up |
Oh I just hadn't gotten to finishing it 😅 no worries though! |
Problem
yew/packages/yew/src/html/listener/events.rs
Line 169 in 3758e6d
That sounds.. wrong.
Questionnaire
The text was updated successfully, but these errors were encountered: