@@ -93,7 +93,12 @@ impl UseFloatingOptions {
9393 pub fn while_elements_mounted_auto_update ( self ) -> Self {
9494 let auto_update_rc: SendWrapper < Rc < WhileElementsMountedFn > > =
9595 SendWrapper :: new ( Rc :: new ( |reference, floating, update| {
96- auto_update ( reference, floating, update, AutoUpdateOptions :: default ( ) )
96+ auto_update (
97+ reference,
98+ Some ( floating) ,
99+ update,
100+ AutoUpdateOptions :: default ( ) ,
101+ )
97102 } ) ) ;
98103 self . while_elements_mounted ( auto_update_rc)
99104 }
@@ -102,7 +107,12 @@ impl UseFloatingOptions {
102107 pub fn while_elements_mounted_auto_update_with_enabled ( self , enabled : Signal < bool > ) -> Self {
103108 let auto_update_rc: SendWrapper < Rc < WhileElementsMountedFn > > =
104109 SendWrapper :: new ( Rc :: new ( |reference, floating, update| {
105- auto_update ( reference, floating, update, AutoUpdateOptions :: default ( ) )
110+ auto_update (
111+ reference,
112+ Some ( floating) ,
113+ update,
114+ AutoUpdateOptions :: default ( ) ,
115+ )
106116 } ) ) ;
107117 self . while_elements_mounted ( MaybeProp :: derive ( move || {
108118 if enabled. get ( ) {
@@ -121,7 +131,7 @@ impl UseFloatingOptions {
121131 let auto_update_rc =
122132 move |options : AutoUpdateOptions | -> SendWrapper < Rc < WhileElementsMountedFn > > {
123133 SendWrapper :: new ( Rc :: new ( move |reference, floating, update| {
124- auto_update ( reference, floating, update, options. clone ( ) )
134+ auto_update ( reference, Some ( floating) , update, options. clone ( ) )
125135 } ) )
126136 } ;
127137
@@ -139,7 +149,7 @@ impl UseFloatingOptions {
139149 let auto_update_rc =
140150 move |options : AutoUpdateOptions | -> SendWrapper < Rc < WhileElementsMountedFn > > {
141151 SendWrapper :: new ( Rc :: new ( move |reference, floating, update| {
142- auto_update ( reference, floating, update, options. clone ( ) )
152+ auto_update ( reference, Some ( floating) , update, options. clone ( ) )
143153 } ) )
144154 } ;
145155
0 commit comments