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

@@ -3,5 +3,5 @@ import { RowLabelComponent } from '../../../../src/admin/components/forms/RowLab
export const ArrayRowLabel: RowLabelComponent = (props) => {
const { data, fallback } = props;
return <span style={{ color: 'hotpink' }}>{data.title || fallback}</span>;
return <div style={{ color: 'hotpink' }}>{data.title || fallback}</div>;
};

View File

@@ -3,5 +3,5 @@ import { RowLabelComponent } from '../../../../src/admin/components/forms/RowLab
export const CollapsibleLabelComponent: RowLabelComponent = (props) => {
const { data, fallback } = props;
return <span style={{ color: 'coral' }}>{data.componentTitleField || fallback}</span>;
return <div style={{ color: 'coral' }}>{data.componentTitleField || fallback}</div>;
};