Skip to content

fix(library): keep half-typed exclusion when switching form tabs - #1202

Merged
everpcpc merged 1 commit into
mainfrom
fix/scanner-exclusion-state
Oct 4, 2026
Merged

everpcpc merged 1 commit into
mainfrom
fix/scanner-exclusion-state

Conversation

@everpcpc

@everpcpc everpcpc commented Oct 4, 2026

Copy link
Copy Markdown
Member

Problem

The library add/edit form's Scanner tab holds its "add exclusion" text field state locally. On iOS/macOS the form's sections are swapped by a segmented tab picker, so leaving the Scanner tab destroys the section view and any half-typed exclusion text with it. (Missed from the nit batch in #1201.)

Fix

Hoist newExclusion from LibraryFormScannerSection to LibraryFormSections, which persists across tab switches, and pass it down as a binding. No behavior change otherwise.

Validation

  • make format
  • make build — iOS, macOS, tvOS all pass

@everpcpc
everpcpc merged commit ff2f062 into main Oct 4, 2026
3 checks passed
@everpcpc
everpcpc deleted the fix/scanner-exclusion-state branch October 4, 2026 10:57
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