fix(ssr): require Apply for all date-range filters #13
Reference in New Issue
Block a user
Delete Branch "integreat-fix-other-dates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Date-range filters on most grid pages auto-submitted on every
changeevent, which fired mid-typing and re-rendered the date inputs out from under you — breaking manual date entry. Invoices and ledgers already gated date submission behind an explicit Apply button. This brings the other ten pages in line so every date filter uses Apply.Changes
date-rangecomponent (shared by every caller):@change.stopto the date-inputs' container<div>so a typed or picked date'schangeevent is stopped before it bubbles to the form (existing codebase idiom —typeahead-already uses"@change.stop" ""). The All/Week/Month/Year presets live in a sibling div and keep auto-applying.datesAppliedevent.datesAppliedto thehx-trigger: payments, invoice import, transactions, import batches, sales summaries, expected deposits, cash drawer shifts, refunds, tenders, sales orders.All other controls (typeaheads, radio-cards, selects, money/text inputs) keep their existing auto-apply behavior — only date submission moves behind Apply.
Verification
lein cljfmt check— all files formatted correctlyclj-kondo— 0 errors (only pre-existing unused-require warnings)apply-button?key the component renders exactly one Apply button plus the@change.stopguard anddatesApplieddispatch🤖 Generated with Claude Code
a4fde446fcto3759258ebe