Skip to content

Commit 652fb6f

Browse files
committed
fix: Denote auto-draft status
If Apple and Google allowed programmatic focus of interactive elements in web views, this would ensure the post title field is focused for new drafts. However, Apple and Google require user interaction--e.g., taps--for the virtual keyboard to display. Regardless, denoting the auto-draft status is likely still worthwhile.
1 parent d776194 commit 652fb6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/bridge.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export function getPost() {
168168
title: { raw: decodeURIComponent(post.title) },
169169
content: { raw: decodeURIComponent(post.content) },
170170
type: post.type || 'post',
171+
status: 'auto-draft',
171172
};
172173
}
173174

0 commit comments

Comments
 (0)