Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ESC does not propagate even after closing suggestions #57
Initially an ESC keypress in the text field propagates up the dom tree. When suggestions are displayed, it closes the suggestions instead. Another ESC keypress afterwards doesn't propagate up anymore.
I think ESC should propagate normally while no suggestions are shown. For example, we're showing a form in a dialog that can be closed with ESC, but that doesn't work while focusing the typeahead-enhanced field once suggestions had been shown.
I'm not using .stopPropagation but .preventDefault for the ESC case,
I'll look into .stopImmediatePropagation() my goal is to close the Typeahead result list but indeed I'm blocking any further actions