Commit d5dcb89
committed
[Bug Fix] Fix DropdownMenu docs example: replace nonexistent DialogClose
The 'Non-navigational item' example (added in #427) referenced a
DialogClose component that does not exist in the gem. VisualCodeExample
evaluates the snippet at render time, so it raised NoMethodError and the
whole /docs/dropdown_menu page failed to render.
Close the dialog with the documented pattern instead: a Button wired to
click->ruby-ui--dialog#dismiss (same approach used in dialog_docs.rb).
Fixes #4281 parent d799b7a commit d5dcb89
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- docs/app/views/docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments