-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Bug: beforeInput event doesn't fire when input is replacing previous text #24358
Comments
👋 Could have a look on this one if possible |
Sure. |
|
Is this issue still available? I'd like to to take a look into it if possible :) |
hi there is the issue resloved or still there can you assign me the task if in case not done |
Hello! I'm interested in contributing to this project and would love to work on this issue. If this issue is still open, please consider assigning it to me. I'm excited to get started and contribute to the project. Thank you! |
I am interested in contributing to this project and would love to work on this issue. If this issue is still open please assigning it to me if possible. |
beforeInput event fails to trigger during text replacement. Requesting a fork to investigate and fix the issue. Eager to contribute to the project and ensure seamless functionality. Thank you! |
I am interested in contributing to this project and would love to work on this issue. If this issue is still open please assigning it to me if possible. |
Hi, I am curious to know if this issue is still open or has been resolved. If it's still unresolved, I would like to contribute towards fixing it. |
There is a strange React bug where the
beforeinput
event does not fire but only on Firefox (v99).React version: 17.0.2
Steps To Reproduce
There are two ways I have found to reproduce this bug and both involve a scenario where the
beforeInput
event is replacing the previous text and both are only problematic on Firefox when the events are triggered via React rendered input.MacOS Popup
keydown
,beforeinput
, andinput
events should have fired and the new input should have the regular key insertedkeydown
andinput
events firedNative HTML Spellcheck Replacement
keydown
,beforeinput
, andinput
events fire when typing standard keysinput
event fires with the replacement inputLink to code example:
Here is a simple codesandbox with a Standard HTML textarea and a textarea rendered via React. It logs to the console when the events fire. If you run through either one of the above steps to reproduce, you'll notice the
beforeinput
event fires correctly with the standard HTML element but not with the React rendered input.Code Sandbox
The current behavior
Only the
keydown
andinput
events fired when a replacement text input event flow is triggeredThe expected behavior
The
beforeinput
event should always fireThe text was updated successfully, but these errors were encountered: