-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
add support for SyntheticKeyboardEvent#isComposing #13104
Comments
Want to send a PR? |
This is native-unsupported on IE and Safari < 10.1. Would need to be polyfilled, although it is an extremely simple polyfill: true if seen after |
@gaearon I would like to work on a PR for this. Copying the field from the nativeEvent is easy, polyfilling for IE11 (+old Safari) is not as would need to listen for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. |
Bump -- still hoping for some guidance from React team re: previous comment |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any additional information, please include with in your comment! |
bump |
Isn't |
@eps1lon possibly! Could you point me at anywhere in particular? I am motivated to help with this but 100% noob on the React codebase. Also it would be news to me if React was polyfilling |
I'm not familiar with most of react-dom, sorry.
If I remember correctly polyfilling was the actual issue. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
bump |
Here is what I use to work around this issue. My "cloning" of the event via
|
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Still an issue, although less interesting the older it gets (e.g. we are dropping support for IE11 in a few months) |
Turns out my workaround breaks the ability to call |
If I'm reading this correctly, can we just copy from nativeEvent and ignore IE? |
Works for me, IE is dead
…-Craig (mobile)
________________________________
From: Austaras ***@***.***>
Sent: Monday, July 11, 2022 2:47:11 AM
To: facebook/react ***@***.***>
Cc: Craig Kovatch ***@***.***>; Comment ***@***.***>
Subject: Re: [facebook/react] add support for SyntheticKeyboardEvent#isComposing (#13104)
If I'm reading this<https://create-react-app.dev/docs/supported-browsers-features/> correctly, can we just copy from nativeEvent and ignore IE?
—
Reply to this email directly, view it on GitHub<#13104 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACTWJEIVFYIWLRP5LMXNAUTVTPUR7ANCNFSM4FGVIEHQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Synthetic keyboard events do not contain
isComposing
.They should if the value is true, per the w3 spec 4.7.5: https://www.w3.org/TR/uievents/#events-compositionevents
What is the expected behavior?
event.isComposing === event.nativeEvent.isComposing
SyntheticKeyboardEvent#isComposing is true when a keydown even is fired after compositionstart and before compositionend.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
all versions, up through at least 16.4.1
The text was updated successfully, but these errors were encountered: