Skip to content

Hide form placeholders when submit is focused#383

Open
GreyforgeLabs wants to merge 1 commit into
CortexLM:mainfrom
GreyforgeLabs:hide-form-placeholder-on-submit
Open

Hide form placeholders when submit is focused#383
GreyforgeLabs wants to merge 1 commit into
CortexLM:mainfrom
GreyforgeLabs:hide-form-placeholder-on-submit

Conversation

@GreyforgeLabs
Copy link
Copy Markdown

Summary

  • Show empty field placeholders only while the input field itself is focused
  • Leave empty fields visually blank when focus moves to the submit button
  • Add render-level regression tests for focused field and submit-focused states

Validation

  • git diff --check
  • cargo test -p cortex-tui widgets::form::tests:: --no-default-features
  • cargo check -p cortex-tui --no-default-features

Validation blocker

  • cargo fmt --package cortex-tui --check reports an unrelated existing formatting diff in src/cortex-tui/src/question.rs; this PR leaves that file untouched to keep scope narrow.

Addresses PlatformNetwork/bounty-challenge#53129.

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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.

1 participant