-
Notifications
You must be signed in to change notification settings - Fork 3.4k
select: doesn't autofill correctly when pressing period character #11294
Comments
Hrm, I tested on Chrome and Firefox and the I updated the CodePen to 1.1.9 and added a I added another value of Let me look into the code a bit more... |
OK, for the keyboard search on Typing quickly, I'm able to get to The root cause appears to be a bug caused by the use of |
I managed to reproduce this in a unit test and fix that test in 1535ce5, but this causes about 48 other tests to break. It's going to need a good deal more time and effort invested to refine this solution. If someone else wants to pick it up from here and provide a PR, please feel free. I need to focus on some higher priority issues. |
Hi @Splaktar , I'll try with the use of e.key instead of e.charCode, as exlpained in this page for example: https://developer.mozilla.org/fr/docs/Web/Events/keypress |
…or auto-completion Fixes angular#11294.
…or auto-completion Fixes angular#11294.
Bug, enhancement request, or proposal:
Bug
CodePen and steps to reproduce the issue:
CodePen Demo which demonstrates the issue:
https://codepen.io/geertjansen/pen/QrPoVa
Detailed Reproduction Steps:
What is the expected behavior?
What is the current behavior?
What is the use-case or motivation for changing an existing behavior?
This is not how the select autofill is supposed to work.
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
The problem lies in the fact the MdSelect listens for the keyCode of the keydown event which is then used as a parameter for the String.fromCharCode method which returns "¾" for the keyCode 190 instead of a "." character.
The text was updated successfully, but these errors were encountered: