Skip to content

Commit

Permalink
Add forced update to offset RTL to attempt to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Apr 2, 2024
1 parent 25f400a commit 91a66c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/leptos/tests/visual/src/spec/offset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ pub fn Offset() -> impl IntoView {
let (offset_options, set_offset_options) = create_signal("0");

let UseFloatingReturn {
floating_styles, ..
floating_styles,
update,
..
} = use_floating(
reference_ref,
floating_ref,
Expand Down Expand Up @@ -145,7 +147,7 @@ pub fn Offset() -> impl IntoView {
each=|| [true, false]
key=|value| format!("{}", value)
children=move |value| {
// let rtl_update = update.clone();
let rtl_update = update.clone();

view! {
<button
Expand All @@ -156,7 +158,7 @@ pub fn Offset() -> impl IntoView {
}
on:click=move |_| {
set_rtl(value);
// rtl_update();
rtl_update();
}
>
{format!("{}", value)}
Expand Down

0 comments on commit 91a66c3

Please sign in to comment.