diff --git a/src/components/Action/index.tsx b/src/components/Action/index.tsx index 50a4f6c5..9a7cdcee 100644 --- a/src/components/Action/index.tsx +++ b/src/components/Action/index.tsx @@ -26,7 +26,7 @@ export default function Action(props) { const icon = props.icon || 'arrowLeft'; const iconPosition = props.iconPosition || 'right'; const IconComponent = iconMap[icon]; - const annotationPrefix = props.annotationPrefix || ''; + const annotationPrefix = props['data-sb-field-path'] || ''; const annotations = [ `${annotationPrefix}`, `${annotationPrefix}.url#@href`, diff --git a/src/components/CheckboxFormControl/index.tsx b/src/components/CheckboxFormControl/index.tsx index 71b49016..906b83e9 100644 --- a/src/components/CheckboxFormControl/index.tsx +++ b/src/components/CheckboxFormControl/index.tsx @@ -17,7 +17,7 @@ export default function CheckboxFormControl(props) { className={classNames('sb-form-control', 'flex', 'items-center', 'px-2', 'w-full', { 'sm:w-1/2': width === '1/2' })} - data-sb-field-path={props.annotationPrefix} + data-sb-field-path={props['data-sb-field-path']} > {actions.map((action, index) => ( - + ))} diff --git a/src/components/EmailFormControl/index.tsx b/src/components/EmailFormControl/index.tsx index 2825663c..982f3fb8 100644 --- a/src/components/EmailFormControl/index.tsx +++ b/src/components/EmailFormControl/index.tsx @@ -16,7 +16,7 @@ export default function EmailFormControl(props) { className={classNames('sb-form-control', 'px-2', 'w-full', { 'sm:w-1/2': width === '1/2' })} - data-sb-field-path={props.annotationPrefix} + data-sb-field-path={props['data-sb-field-path']} > {props.label && (