pk 82adb306b6 Define isChanged() before first snapshot + emit form-changed on control changes
isChanged() compared against a fabricated '{}' baseline before the first
snapshot() call, so the first query on any non-empty form reported true.
Consumers that embed the boolean in their own baseline (settings dirty
guards) froze that false positive in. Now reports false until a baseline
exists; hasSnapshot getter exposes the state.

New: form listens (capture phase, so non-bubbling events are caught) to
the tp-* control change events and re-emits them as 'form-changed'
(detail.changed = isChanged()), scoped to its own registered controls.
Consumers can drop polling.
2026-10-22 23:51:12 +02:00
2022-03-12 22:39:10 +01:00
2022-03-12 22:39:10 +01:00
2022-03-12 22:39:10 +01:00
2022-03-12 22:40:18 +01:00
S
Description
No description provided
Readme Apache-2.0
45 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 100%