Fixes on record title input (#11720)

- Fix record creation title cell opening
- Fix full name input hotkey scope
This commit is contained in:
Raphaël Bosi
2025-04-24 15:29:21 +02:00
committed by GitHub
parent b545ebc53b
commit 4a61956087
3 changed files with 2 additions and 3 deletions

View File

@ -48,7 +48,7 @@ export const useCreateNewIndexRecord = ({
openRecordTitleCell({
recordId,
fieldMetadataId: objectMetadataItem.labelIdentifierFieldMetadataId,
containerType: RecordTitleCellContainerType.PageHeader,
containerType: RecordTitleCellContainerType.ShowPage,
});
} else {
navigate(AppPath.RecordShowPage, {

View File

@ -52,7 +52,7 @@ export const RecordTitleFullNameFieldDisplay = () => {
<StyledDiv
onClick={() => {
setHotkeyScopeAndMemorizePreviousScope(
TitleInputHotkeyScope.TitleFullNameInput,
TitleInputHotkeyScope.TitleInput,
);
openInlineCell();
}}

View File

@ -1,4 +1,3 @@
export enum TitleInputHotkeyScope {
TitleInput = 'title-input',
TitleFullNameInput = 'title-full-name-input',
}