Skip to content

[FIX-642]: docs: close dialog on delete in Radix modal example (#642) - #669

Open
sudarshansaxena2409 wants to merge 1 commit into
DietrichGebert:mainfrom
sudarshansaxena2409:fix-642-radix-dialog-confirm-close
Open

[FIX-642]: docs: close dialog on delete in Radix modal example (#642)#669
sudarshansaxena2409 wants to merge 1 commit into
DietrichGebert:mainfrom
sudarshansaxena2409:fix-642-radix-dialog-confirm-close

Conversation

@sudarshansaxena2409

Copy link
Copy Markdown

This updates the Radix dialog example in examples/modal-dialog.md to make the behavior consistent.

Previously, the Cancel button closed the dialog while the Delete button did not. Wrapping the Delete button with Dialog.Close aligns it with the Cancel action and the native HTML example shown later in the document, without changing the overall purpose of the example.

Closes #642.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potential inconsistency in Radix Dialog example: confirm button does not explicitly close the dialog

1 participant