minor fix -- datamodel multiselect edit form dropdowns (#9168)

made sure dropdown gets unique ids.
This commit is contained in:
nitin 2024-12-20 18:47:13 +05:30 committed by GitHub
parent 52362812a5
commit f65a90d137
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,8 +79,8 @@ export const SettingsDataModelFieldSelectFormOptionRow = ({
}: SettingsDataModelFieldSelectFormOptionRowProps) => { }: SettingsDataModelFieldSelectFormOptionRowProps) => {
const theme = useTheme(); const theme = useTheme();
const SELECT_COLOR_DROPDOWN_ID = 'select-color-dropdown'; const SELECT_COLOR_DROPDOWN_ID = `select-color-dropdown-${option.id}`;
const SELECT_ACTIONS_DROPDOWN_ID = 'select-actions-dropdown'; const SELECT_ACTIONS_DROPDOWN_ID = `select-actions-dropdown-${option.id}`;
const { closeDropdown: closeColorDropdown } = useDropdown( const { closeDropdown: closeColorDropdown } = useDropdown(
SELECT_COLOR_DROPDOWN_ID, SELECT_COLOR_DROPDOWN_ID,