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
Our team uses SLDS react components in a typescript environment and we are seeing a few typescript errors on certain props in the ColorPicker component that uses event handlers. Issues are happening in the event props for the following event handlers: onChange, onClose, onOpen, onRequestClose, onWorkingColorChange. This is due to the types for those props only take in one parameter, e.g. onChange?: (v: any) => any; instead of having an additional event parameter for the handler. We recently fixed some other components in a seperate Issue/PR that was merged, here. This makes our linting tools fail in our CI/CD. Here are some snapshots of the error.
The text was updated successfully, but these errors were encountered:
Our team uses SLDS react components in a typescript environment and we are seeing a few typescript errors on certain props in the ColorPicker component that uses event handlers. Issues are happening in the event props for the following event handlers: onChange, onClose, onOpen, onRequestClose, onWorkingColorChange. This is due to the types for those props only take in one parameter, e.g.
onChange?: (v: any) => any;
instead of having an additional event parameter for the handler. We recently fixed some other components in a seperate Issue/PR that was merged, here. This makes our linting tools fail in our CI/CD. Here are some snapshots of the error.The text was updated successfully, but these errors were encountered: