0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 fix typing a space in search input (#261)

closes TryGhost/Ghost#7369
- temporary fix for spacebar selecting until eps 1.0 is finalized
This commit is contained in:
Austin Burdine 2016-09-14 10:11:41 -05:00 committed by Kevin Ansfield
parent 321a2970ea
commit 93aac28fb3

View file

@ -35,7 +35,9 @@ export default Component.extend({
handleKeydown(e) {
let select = this.get('select');
if (!select.isOpen) {
// TODO: remove keycode check once EPS is updated to 1.0
if (!select.isOpen || e.keyCode === 32) {
e.stopPropagation();
}
}