fix: sets pointer-events to none so the entire label bar is clickable

This commit is contained in:
Jarrod Flesch
2022-11-15 16:05:54 -05:00
parent ccb42319ab
commit e458087a55
3 changed files with 13 additions and 2 deletions

View File

@@ -5,6 +5,17 @@ import { useWatchForm } from '../Form/context';
const baseClass = 'row-label';
export const RowLabel: React.FC<Props> = (props) => {
return (
<span style={{
pointerEvents: 'none',
}}
>
<RowLabelContent {...props} />
</span>
);
};
const RowLabelContent: React.FC<Props> = (props) => {
const {
path,
fallback,