Skip to content

Commit

Permalink
Fix anchor to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar committed Dec 4, 2024
1 parent d886c4a commit 0e94684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/components/examples/demo_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def extract_method_source(example_method)
def render_header
header class: "sticky top-[4.5rem] z-10 bg-base-100 pb-4" do
h2 class: "text-sm font-bold mb-4", id: title.parameterize do
link_to "# ", examples_path(component, anchor: title.parameterize)
link_to "# ", examples_path(component, anchor: title.parameterize), data: {turbo_frame: :_top}

span do
title
Expand Down

0 comments on commit 0e94684

Please sign in to comment.