Skip to content

Commit

Permalink
pass JSRuntime to AriaPopupExtensions.OnKeyDown
Browse files Browse the repository at this point in the history
This will allow the OnKeyDown to scroll elements into view.
  • Loading branch information
panoukos41 committed Apr 23, 2024
1 parent 50ee717 commit ed2e8d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/Tailwind/Ignis.Components.HeadlessUI/Listbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ protected override void OnAfterOpen(Action? continueWith)
/// <inheritdoc />
protected override void OnKeyDown(KeyboardEventArgs eventArgs)
{
AriaPopupExtensions.OnKeyDown(this, eventArgs);
AriaPopupExtensions.OnKeyDown(this, eventArgs, JSRuntime);
}

#endregion Listbox
Expand Down
2 changes: 1 addition & 1 deletion packages/Tailwind/Ignis.Components.HeadlessUI/Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected override void OnAfterOpen(Action? continueWith)
/// <inheritdoc />
protected override void OnKeyDown(KeyboardEventArgs eventArgs)
{
AriaPopupExtensions.OnKeyDown(this, eventArgs);
AriaPopupExtensions.OnKeyDown(this, eventArgs, JSRuntime);
}

#endregion Menu
Expand Down

0 comments on commit ed2e8d3

Please sign in to comment.