diff options
| author | Adam Soltys <[email protected]> | 2026-10-05 21:10:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-05 21:10:21 -0700 |
| commit | 690a3c177778bdbdee61da5285745e39cfc2be33 (patch) | |
| tree | 281f732e8449bbb44e4d97e4a24d53e6c17d8c22 /src/features | |
| parent | 24becc83eeef36418a0db04329e71900374a162e (diff) | |
| download | coinosv3-690a3c177778bdbdee61da5285745e39cfc2be33.tar.gz coinosv3-690a3c177778bdbdee61da5285745e39cfc2be33.zip | |
Feed: leaving via the bottom nav closes the composer (its words stay the draft), so the Post button is back when you return
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YRC6aKhwAud231ot9FPmhi
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/messages.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index 86b6c75..e97fa37 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -9801,7 +9801,14 @@ export function messagesFeature(ctx) { const icon = (paths) => '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' + paths + '</svg>'; const button = (id, label, paths, onClick) => h('button', { type: 'button', class: 'app-nav-button' + (!visitor && (id === 'messages' ? hook('unreadMessages') : id === 'notifs' && notifsWaiting()) ? ' unread' : ''), - 'aria-label': label, 'aria-current': active === id ? 'page' : undefined, onClick, + 'aria-label': label, 'aria-current': active === id ? 'page' : undefined, + onClick: (e) => { + // An open composer doesn't follow you around: back on the feed it sat + // at the top, out of sight, and hid the Post button. Its words are + // already the saved draft (it still shows, and Post reopens it). + ui.profCompose = null; + onClick(e); + }, }, h('span', { html: icon(paths) }), h('span', {}, label)); return h('nav', { class: 'app-bottom-nav', 'data-key': 'app-bottom-nav', |
