Ensure record fields uniqueness across widgets (#16781)
This PR dissociates record inputs so that several inputs for the same record field can live on the same page. ## Simple values demo https://github.com/user-attachments/assets/a8c224d8-4cd6-4fe3-9cf8-01f6bdd2fca9 ## Relations demo https://github.com/user-attachments/assets/87267a8b-8ce5-41ce-8a78-cba2384828bb ## Doesn't break Record Table https://github.com/user-attachments/assets/bcdd2b05-7cb4-4ed2-9093-58be3e04e43e ## Doesn't break Show Page https://github.com/user-attachments/assets/f9ab9e14-012c-451e-a35f-01a165523f95
This commit is contained in:
committed by
GitHub
parent
6a4974e285
commit
06d0ac13c4
+12
-6
@@ -1,7 +1,13 @@
|
||||
export const getDropdownFocusIdForRecordField = (
|
||||
recordId: string,
|
||||
fieldMetadataId: string,
|
||||
componentType: 'table-cell' | 'inline-cell',
|
||||
) => {
|
||||
return `dropdown-${componentType}-record-${recordId}-field-${fieldMetadataId}`;
|
||||
export const getDropdownFocusIdForRecordField = ({
|
||||
recordId,
|
||||
fieldMetadataId,
|
||||
componentType,
|
||||
instanceId,
|
||||
}: {
|
||||
recordId: string;
|
||||
fieldMetadataId: string;
|
||||
componentType: 'table-cell' | 'inline-cell';
|
||||
instanceId: string;
|
||||
}) => {
|
||||
return `dropdown-${instanceId}-${componentType}-record-${recordId}-field-${fieldMetadataId}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user