Component changelog
AlertDialog changelog
Component-specific release notes collected from the full changelog. This page filters the published entries that mention AlertDialog.
Release
v1.1.2
Patch Changes
- f70cd18Fix Dialog.Close and AlertDialog.Cancel types so they accept standard button props.
Release
v1.0.0
Patch Changes
-
05c0ccb: Add
defaultOpentoDialog.Rootand fix controlled/uncontrolled handlingDialogPrimitive.Rootnow acceptsdefaultOpenfor uncontrolled usage and switches from hand-rolleduseState+useEffectsyncing to the existinguseControllableStatehook.This also fixes controlled mode. Previously
openwas seeded into local state and re-synced by an effect, so a controlled dialog still opened when the trigger was clicked even though the parent heldopen={false}— the effect only re-ran whenopenitself changed. WithuseControllableState, a definedopenis authoritative: the dialog reports the request throughonOpenChangeand waits for the parent to update.AlertDialoginherits the same fix. ItsonOpenChangetest asserted the old behaviour (clicking the trigger opened a controlled dialog) and now asserts correct controlled semantics: the request fires, the dialog stays closed until the parent rerenders withopen={true}. -
6c18fcb: docs(a11y): add ARIA references for alert dialog, context menu, and menubar
Release
v0.2.1
Patch Changes
- 9a28addAlign AlertDialog styling with theme tokens.