You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context :
We have a header on two rows :
First => Menu
Second => Search bar
"Search bar" (Second row) should always be sticky but "Menu" (First row) should only be sticky if user scroll back some pixels.
We successfully hide/display the "Menu" (First row) according to scroll back status.
However, we would like the full header to become sticky only when "Search bar" (Second row) is out of viewport.
At the moment, the header become sticky when any children of the component is out of viewport.
Question :
Is there any way to say "Sticky" which component it should listen position on ?
Note :
We tried to nest Sticky components in order to listen "STATUS" event of children and enable/disable parent Sticky but as soon as "Sticky" is not enabled, "onStateChange" is never called.
Hi everyone,
Context :
We have a header on two rows :
First => Menu
Second => Search bar
"Search bar" (Second row) should always be sticky but "Menu" (First row) should only be sticky if user scroll back some pixels.
We successfully hide/display the "Menu" (First row) according to scroll back status.
However, we would like the full header to become sticky only when "Search bar" (Second row) is out of viewport.
At the moment, the header become sticky when any children of the component is out of viewport.
Question :
Is there any way to say "Sticky" which component it should listen position on ?
For example :
Note :
We tried to nest Sticky components in order to listen "STATUS" event of children and enable/disable parent Sticky but as soon as "Sticky" is not enabled, "onStateChange" is never called.
Ex :
Thansk in advance for your help.
Yours faithfully,
LCDP
The text was updated successfully, but these errors were encountered: