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
Describe the bug
The event object isn't properly passed to the Dropdown.Item onClick prop which leads to undefined when logged.
To Reproduce
Steps to reproduce the behavior:
Add a Dropdown component
Add a click handler function to Dropdown.Item's onClick prop
Try logging e or event
See error
Expected behavior
I expected to be able to access the e prop within the handler function and console.log the event object like so:
But unfortunately it logs out undefined.
Strangely, by removing the e prop and simply console.loging the event keyword I am able to access the event object, though my IDE marks it as deprecated:
Desktop (please complete the following information):
OS: MacOS
Browser: Chrome
Version: 121.0.6167.184 (Official Build) (arm64)
The text was updated successfully, but these errors were encountered:
Describe the bug
The event object isn't properly passed to the Dropdown.Item
onClick
prop which leads toundefined
when logged.To Reproduce
Steps to reproduce the behavior:
onClick
prope
orevent
Expected behavior
I expected to be able to access the
e
prop within the handler function and console.log the event object like so:But unfortunately it logs out undefined.
Strangely, by removing the
e
prop and simplyconsole.log
ing theevent
keyword I am able to access the event object, though my IDE marks it as deprecated:Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: