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

🐛 Fix field focus when adding navigation items (#835)

closes TryGhost/Ghost#8764
- when adding a new nav item in the `design` controller, use jQuery to give focus to the name field of the last navigation item
This commit is contained in:
Erik Hanchett 2017-08-24 04:53:14 -07:00 committed by Kevin Ansfield
parent e32111a364
commit 01f2211c11

View file

@ -64,6 +64,7 @@ export default Controller.extend({
newNavItem.set('isNew', false);
navItems.pushObject(newNavItem);
this.set('newNavItem', NavigationItem.create({isNew: true}));
$('.gh-blognav-line:last input:first').focus();
},
_deleteTheme() {