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 passing down an array of items to a Dropdown component and for each I'm defining the value as a function. However, the onClick event doesn't get called when I click the item. I found that if I made a small adjustment to line 105 of Dropdown Component it works:
Current implementation: { className: 'Dropdown-menu__action', onClick: self.onClick.bind(self, item.value) },
Working Implementation: { className: 'Dropdown-menu__action', onClick: item.value },