baseweb
baseweb copied to clipboard
Wrong target property used in docs examples
Current Behavior
e.g. but also others https://baseweb.design/components/checkbox/ are using e.target... instead of e.currentTarget...
Please note the difference of e.target vs. e.currentTarget documented e.g. here: https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget
Errors like these can happen: https://github.com/facebook/react/issues/4745
Expected Behavior
encourage use of the right event target
If you need more information, there are huge issues at github at react. Typescript is reporting an error if you accidentally use target instead of currentTarget. Without typescript you won't even notice your error.
- [x ] I have searched the issues of this repository and believe that this is not a duplicate.
Can you please share an error you're finding?