New source found from dndbeyond.com
This commit is contained in:
@@ -10,7 +10,7 @@ interface Props {
|
||||
traitKey: string;
|
||||
label?: string;
|
||||
fallback: string;
|
||||
onClick?: (traitKey: string) => void;
|
||||
onClick?: (traitKey: Constants.TraitTypeEnum) => void;
|
||||
}
|
||||
export default class TraitContent extends React.PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
@@ -23,7 +23,7 @@ export default class TraitContent extends React.PureComponent<Props> {
|
||||
if (onClick) {
|
||||
evt.stopPropagation();
|
||||
evt.nativeEvent.stopImmediatePropagation();
|
||||
onClick(traitKey);
|
||||
onClick(traitKey as Constants.TraitTypeEnum);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user