Skip to content

Preserve text dialog edits and validate required input - #184

Merged
Oleg-Melnik merged 4 commits into
masterfrom
preserve-input-text-dialog-edits
Sep 25, 2026
Merged

Oleg-Melnik merged 4 commits into
masterfrom
preserve-input-text-dialog-edits

Conversation

@Oleg-Melnik

@Oleg-Melnik Oleg-Melnik commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

InputTextDialog preserves edits across recompositions and honors submission and cancellation checks. Applications can require nonblank input, with inline validation that keeps the dialog open for correction.

Changes

  • Expose dirty to detect changes from the initial text, including whitespace edits, and clear it when the original text is restored.
  • Resolve input requests only after accepted submission or closure, without replacing caller-provided hooks.
  • Add an optional textFieldHint that displays the field label separately above the input.
  • Add textRequired to reject empty or whitespace-only input before closing and clear the error when the input is corrected.
  • Bump the library version to 2.0.0-SNAPSHOT.128 and regenerate dependency reports.

@Oleg-Melnik Oleg-Melnik self-assigned this Sep 25, 2026
@Oleg-Melnik
Oleg-Melnik marked this pull request as ready for review September 25, 2026 00:01
@Oleg-Melnik Oleg-Melnik changed the title Preserve input text and honor dialog cancellation checks Preserve text dialog edits and validate required input Sep 25, 2026
@Oleg-Melnik
Oleg-Melnik merged commit 503d851 into master Sep 25, 2026
4 checks passed
@Oleg-Melnik
Oleg-Melnik deleted the preserve-input-text-dialog-edits branch September 25, 2026 00:35
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