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:
parent
e32111a364
commit
01f2211c11
1 changed files with 1 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue