mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fix new url field focus bug (#194)
Closes TryGhost/Ghost#7140 * Now checks to see if it is new or not before editing the url
This commit is contained in:
parent
98892c6934
commit
1a91c1b2ed
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ export default TextField.extend(InvokeActionMixin, {
|
|||
url = url.replace(baseUrlParts.pathname.slice(0, -1), '');
|
||||
}
|
||||
|
||||
if (url !== '') {
|
||||
if (url !== '' || !this.get('isNew')) {
|
||||
if (!url.match(/^\//)) {
|
||||
url = `/${url}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue