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
I'm using ref={ e=>this.element = e} element to helped me to calculate a position absolute of a menu below a button/link when I run the story with focus in the current story, everything works without problem, but if I switch between components and then click again in that specific story the ref don't fire again and the element is always is undefined and because I'm validating to render the component until element !== undefined my component don't get render, I'm attaching a gif image with the behaviour.
I think we run a fresh component when switching stories.
So, every time it runs with a new instance of your component.
It's really hard for me to tell more about based on this info. If you could create a minimal repo isolating the core problem, I could have a look at it.
I'm using
ref={ e=>this.element = e}
element to helped me to calculate a position absolute of a menu below abutton/link
when I run thestory
withfocus
in the current story, everything works without problem, but if I switch between components and then click again in that specificstory
theref
don't fire again and the element is always isundefined
and because I'm validating to render the component untilelement !== undefined
my component don't get render, I'm attaching a gif image with the behaviour.a piece of my code
any idea what could be happening?
The text was updated successfully, but these errors were encountered: