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
When I attempt to close the Modal and there are no tabs open, because the user closes all tabs they have from the Modal, I get a TypeError: tab is undefined and the relevant stack being:
getTabNode
scrollToIndex
toggleModal
I know that this isn't a typical case because generally we disallow tabs to be closable if there is just one, but in my case I need to allow all tabs to be closable from any point in this component's use.
Otherwise, great component, saved my skin. 👍
The text was updated successfully, but these errors were encountered:
kennethbruskiewicz
changed the title
Closing a modal with no tabs results in an error
Closing a modal with no tabs in TabList results in an error
Sep 13, 2019
stefanuros
added a commit
to stefanuros/react-tabtab
that referenced
this issue
Oct 30, 2019
When I attempt to close the Modal and there are no tabs open, because the user closes all tabs they have from the Modal, I get a
TypeError: tab is undefined
and the relevant stack being:I know that this isn't a typical case because generally we disallow tabs to be closable if there is just one, but in my case I need to allow all tabs to be closable from any point in this component's use.
Otherwise, great component, saved my skin. 👍
The text was updated successfully, but these errors were encountered: