Skip to content

fix: Post button still disabled after pasting text#2942

Open
bfanger wants to merge 1 commit into
basecamp:mainfrom
bfanger:fix/auto-enable-on-paste
Open

fix: Post button still disabled after pasting text#2942
bfanger wants to merge 1 commit into
basecamp:mainfrom
bfanger:fix/auto-enable-on-paste

Conversation

@bfanger

@bfanger bfanger commented Jun 17, 2026

Copy link
Copy Markdown

The checkValidity() is always one step behind ( this might be an issue with lexxy that fires the change event too soon )

The issue

This is not much of an issue when typing a comment, as that is generally more than 1 character.
But when pasting content is an issue, as demonstated here:
fizzy-paste

Fix

The fix was to wait two frames, instead of one, so the checkValidity() is based on contents after the command has been processed.

Copilot AI review requested due to automatic review settings June 17, 2026 13:03

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adjusts the form controller’s submit-disabling behavior by adding an additional frame delay before checking form validity.

Changes:

  • Adds a second await nextFrame() before running checkValidity() in disableSubmitWhenInvalid.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 77 to +79
async disableSubmitWhenInvalid(event) {
await nextFrame()
await nextFrame()
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.

2 participants