Features
rx.form.controlnow acceptsrx.text_area,rx.el.input,rx.el.textareaandrx.el.selectas its child, besidesrx.inputandrx.debounce_input, and renders a child as the control withoutas_child=True. (#7859)- Add an
altprop torx.avatarfor the image's alternative text. Previouslyalt=was turned into a CSS property and never reached the image. (#7931)
Bug Fixes
rx.input(type="hidden")andrx.input(hidden=...)no longer leave an empty bar on the page: the input's Radix wrapper is now hidden while the input is hidden, also whenhiddenortypecomes from state or a script changes it. Adisplayyou set on the input still wins. (#6876)- Ship a
py.typedmarker so type checkers such as mypy read the package's bundled.pyistubs instead of treating it as untyped. (#7710) rx.form.fieldandrx.form.controltell form compilation that a form control takes the field'sname, so a control named only by its field no longer triggers the id-based submission deprecation warning or aTypedDictform field mismatch. (#7724)- The primitive dialog (
reflex_components_radix.primitives.dialog) no longer rejects other children ofDialogRoot, aDialogTriggerorDialogPortalnested in other elements, or aDialogContentandDialogOverlayoutside aDialogPortal: like Radix, it only needs them inside the root, and a content and overlay without a portal render in place. (#8047)
Documentation
- Fix the
sideprop description ofrx.tooltip,rx.dropdown_menu.contentandrx.context_menu.content, which ran two sentences together and, on the menus, described the tooltip and gave the tooltip's default. The dropdown menu now states its "bottom" default. (#7930)