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
We could add to the config to make a list of elements to ignore, so that clicking a button located outside of the component which toggles the display, doesn't immediately toggle the display again.
However, the cleanest way of doing this is within the component's own handleClickOutside function, as your application will have knowledge/context of these elements whereas passing this logic to the HOC is pretty hacky.
We could add to the config to make a list of elements to ignore, so that clicking a button located outside of the component which toggles the display, doesn't immediately toggle the display again.
However, the cleanest way of doing this is within the component's own
handleClickOutside
function, as your application will have knowledge/context of these elements whereas passing this logic to the HOC is pretty hacky.The text was updated successfully, but these errors were encountered: