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:
parent
321a2970ea
commit
93aac28fb3
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ export default Component.extend({
|
||||||
|
|
||||||
handleKeydown(e) {
|
handleKeydown(e) {
|
||||||
let select = this.get('select');
|
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();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue