Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Filterble widget handles the enter key incorrectly #8571

Closed
pstanton opened this issue May 10, 2017 · 2 comments
Closed

Filterble widget handles the enter key incorrectly #8571

pstanton opened this issue May 10, 2017 · 2 comments

Comments

@pstanton
Copy link

if you are typing into the text field, then press enter nothing happens, but then your next key press has no effect. eg:

  1. focus on text field
  2. press a ('a' appears in field)
  3. press enter (no change)
  4. press a (no change)
  5. press a ('aa' appears in field)

this can be easily reproduced on the demo page

@Palestinian
Copy link

Palestinian commented May 10, 2017

It looks like by removing event.preventDefault() in _onKeyPress solves it. Because event is already prevented in _onKeyDown.

_onKeyPress: function(event) {
  if (this._preventKeyPress) {
    //event.preventDefault();
    this._preventKeyPress = false;
  }
},

http://jsfiddle.net/Palestinian/tv5m0oyg/

@apsdehal
Copy link
Contributor

No longer an issue with latest master, closing for now. I will reopen if I find it after more testing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants