Skip to content
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

Autofill component should also listen to onInput, just like the other input components do #4129

Merged
merged 7 commits into from
Feb 28, 2018

Conversation

abettadapur
Copy link
Collaborator

@abettadapur abettadapur commented Feb 28, 2018

Pull request checklist

Description of changes

We should also listen to the onInput event, so that IE11 is guaranteed to receive all the correct keystrokes

See #744 and facebook/react#7027

@abettadapur
Copy link
Collaborator Author

@dzearing
This is a relatively high pri issue that is affecting a control in VSTS right now, could you take a look?

@abettadapur
Copy link
Collaborator Author

abettadapur commented Feb 28, 2018

This fix (supplying both onChange and onInput) does not work because of the non-standard way the Autofill component controls its input (the value of the input is not necessarily what the user is typing)
Do we need to provide the onChange handler at all? Is there a reason we provide both in the other components?
@dzearing @jchilde @mdahamiwal

If I just provide the onInput property, this works correctly. Is it only because of the legacy IE10 document mode we have to support this? :(

@abettadapur
Copy link
Collaborator Author

@joschect

@cschleiden cschleiden merged commit 0ad60de into microsoft:master Feb 28, 2018
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request Mar 1, 2018
* master:
  ResizeGroup SCSS to MergeStyles Part 2: Style Conversion (microsoft#4072)
  Applying package updates.
  Import Unstyled Component for Layer, Nav, Image, ScrollablePane, ResizeGroup,  and Rating (microsoft#4135)
  FocusZone: isDefaultPrevented is now respected (microsoft#4133)
  Website: Left nav scroll improvements (microsoft#4132)
  AutoFill: Component should also listen to onInput, just like the other input components do (microsoft#4129)
  GroupedList: Fixed chevron animation (microsoft#4123)
  CoachMarkStyles: Use ... instead of assign for IE compatibility" (microsoft#4130)
  Applying package updates.
chrismohr pushed a commit to chrismohr/office-ui-fabric-react that referenced this pull request Apr 17, 2018
…r input components do (microsoft#4129)

* Autofill should use oninput

* Changefile

* Use both handlers

* Autofill

* Update comment

* Update tests and snapshots

* Update snapshots
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IE11: AutoFill should use onInput instead of onChange
3 participants