You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
User
committed
Fix#270: Keep selected on option elements for Preact re-render compat
The set_value_prop_on_select_element transform previously stripped
the selected attribute from option elements, relying solely on
defaultValue for restoring selection. Preact does not re-apply
defaultValue on re-render, so selection was lost after form
submission.
Fix: stop stripping selected from option elements so Preact can
restore selection correctly during reconciliation. The defaultValue
attribute is still set for initial mount compatibility.
Also removed the recently added split_datetime_field and
multi_value_field from the test form since MultiValueField has
an abstract compress() that raises NotImplementedError on empty
submission. Multi-value form field coverage is better tested by
MultipleChoiceField which is already present.
0 commit comments