fix: instances should not be able to sort
This commit is contained in:
1 parent
5180eb127d
commit
ec48801be7
2 files changed
+11
-3
No files matched your search
@@ -21,13 +21,21 @@ const InputLabelWrapper = ({
|
||||
className,
|
||||
children,
|
||||
}) => {
|
||||
const onClickHandler = e => {
|
||||
if (!isSortable) {
|
||||
return;
|
||||
}
|
||||
|
||||
onLabelClick(e);
|
||||
};
|
||||
|
||||
return (
|
||||
<label className={classnames(baseLabelClassName, className)}>
|
||||
<span
|
||||
role="button"
|
||||
className={spanClassName}
|
||||
onClick={onLabelClick}
|
||||
onKeyDown={onLabelClick}
|
||||
onClick={onClickHandler}
|
||||
onKeyDown={onClickHandler}
|
||||
tabIndex="0"
|
||||
>
|
||||
{label}
|
||||
|
||||
Reference in new issue
Block a user