Skip to content

Commit

Permalink
Fix menu context providers
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Jun 29, 2024
1 parent 69adfef commit c26f944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/primitives/leptos/menu/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ pub fn Menu(

view! {
<Popper>
<Provider value=context_value>
<Provider value=root_context_value>
<Provider value=context_value.get_value()>
<Provider value=root_context_value.get_value()>
{children.with_value(|children| children())}
</Provider>
</Provider>
Expand Down Expand Up @@ -395,7 +395,7 @@ fn MenuContentImpl(

// TODO: ScrollLockWrapper, DismissableLayer, RovingFocusGroup.Root
view! {
<Provider value=content_context_value>
<Provider value=content_context_value.get_value()>
<FocusScope
as_child=true
trapped=trap_focus
Expand Down

0 comments on commit c26f944

Please sign in to comment.