Skip to content

Keep message discard from saving on blur - #146

Open
dajiaohuang wants to merge 1 commit into
Richasy:mainfrom
dajiaohuang:fix/issue-134-message-discard
Open

dajiaohuang wants to merge 1 commit into
Richasy:mainfrom
dajiaohuang:fix/issue-134-message-discard

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Oct 4, 2026 •

Copy link
Copy Markdown

Fixes #134

Description

Avoid saving on blur when focus moves to the discard control, allowing the cancel handler to restore the original message.

PR type

  • Bug fix

PR checklist

  • Application successfully launched
  • Source file headers added where required
  • No breaking changes

Validation

Web build/lint and WebView interaction were not run. This PR currently changes only the JSX source. The desktop host loads the committed Web/chat-render/index.html and its generated assets; that entire output tree is unchanged from the base (tree 3cb33fd25895b1d221dceb336a3faf1695b62955). Therefore the packaged desktop renderer does not yet include this source fix. Regeneration and affected interaction validation remain pending under the current no-build/no-runtime restriction; no generated output or acceptance is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Discard 会先触发 blur 并保存编辑内容

1 participant