Repository navigation
0.4.3 — Change and input events
Fixed
- A path chosen from a
PathField's browse dialog now fireson_change. Picking a file or folder set the value and announced nothing, while typing the same path announced it normally — the event was sent to the field's outer frame rather than to the entry your handler is bound to. It now fires once, carrying the picked path and the previous one. Cancelling the dialog, or re-picking the path the field already holds, still announces nothing. (#509) TextArea,SelectButtonandCodeEditornow report a change the way the rest of the field family does.TextAreaannounced one every time focus left it, with nothing typed;CodeEditorannounced one while it was still being built and then one per keystroke; all three reportedprev_valueasNone, andSelectButtonreportedtextas empty rather than the option's label. A change is now announced only when the committed value differs from what it was at focus-in, and the payload carries both values. Check this when you upgrade if you useCodeEditor.on_changeto react as the user types: it now fires once when they leave the editor. Useon_input, which fires per edit.on_blurstill fires on every focus-out, changed or not. (#509)- A
SliderorRangeSliderno longer reports a move to the value it already had. Withstep=set, dragging announced a change for every pixel the pointer crossed rather than every value the slider took — one measured drag produced 574 events for 11 distinct values. It now fires when the value crosses onto the next step. A slider with nostep=is live by design and still announces every distinct value mid-drag, andon_commitis unchanged. (#509) TextAreaandCodeEditorno longer fireon_inputwhile being built. Seeding either withvalue=or a boundtextsignal=counted as an edit, so a handler registered after the constructor received one input event for text the user never typed. Both now announce an edit only when the text actually differs from what they last reported, so a write that changes nothing is silent too. (#509)
What's Changed
- Fix/change event consistency 509 by @israel-dryer in #510
Full Changelog: v0.4.2...v0.4.3