@@ -275,8 +275,7 @@ export function getDisplayValue(
275
275
dataProvider : string ,
276
276
dataTypeIdentifier ?: DataTypeIdentifier ,
277
277
linkedColumnMetaData ?: ColumnDescription ,
278
- context ?: AppContextType ,
279
- ) {
278
+ context ?: AppContextType ) {
280
279
if ( value ) {
281
280
const index = linkReference . columnNames . findIndex ( colName => colName === columnName ) ;
282
281
if ( isDisplayRefColNameOrConcat ) {
@@ -322,6 +321,8 @@ export function getDisplayValue(
322
321
return ""
323
322
} ;
324
323
324
+
325
+
325
326
/**
326
327
* This component displays an input field with a button which provides a dropdownlist with values of a databook
327
328
* when text is entered into the inputfield, the dropdownlist gets filtered
@@ -646,7 +647,7 @@ const UIEditorLinked: FC<IEditorLinked & IExtendableLinkedEditor & IComponentCon
646
647
props . stopCellEditing ( event ) ;
647
648
} else if ( event . key === "Escape" ) {
648
649
props . stopCellEditing ( event )
649
- } else if ( event . key === "Enter" && ! linkedRef . current ?. getOverlay ( ) . querySelector ( '.p-autocomplete-item.p-highlight' ) ) {
650
+ } else if ( event . key === "Enter" && ! linkedRef . current ?. getOverlay ( ) ? .querySelector ( '.p-autocomplete-item.p-highlight' ) ) {
650
651
linkedRef . current ?. hide ( ) ;
651
652
handleEnterKey ( event , event . target , props . name , props . stopCellEditing ) ;
652
653
}
@@ -658,6 +659,7 @@ const UIEditorLinked: FC<IEditorLinked & IExtendableLinkedEditor & IComponentCon
658
659
const index = Math . max ( 0 , el ? parseInt ( el . getAttribute ( "index" ) ?? "-1" ) : - 1 ) ;
659
660
handleSelect ( suggestions [ index ] ) ;
660
661
}
662
+ handleEnterKey ( event , event . target , props . name , props . stopCellEditing ) ;
661
663
}
662
664
}
663
665
} ) ;
@@ -1020,10 +1022,10 @@ const UIEditorLinked: FC<IEditorLinked & IExtendableLinkedEditor & IComponentCon
1020
1022
}
1021
1023
1022
1024
// focus the input field when entering keys
1023
- useEventHandler ( linkedInput . current && props . isCellEditor ? linkedInput . current : undefined , "keydown" , ( ) => {
1025
+ useEventHandler ( linkedInput . current && props . isCellEditor ? linkedInput . current : undefined , "keydown" , ( event : KeyboardEvent ) => {
1024
1026
setTimeout ( ( ) => linkedInput . current . focus ( ) , 0 ) ;
1025
1027
} )
1026
-
1028
+
1027
1029
const handleDropdownClick = useCallback ( ( ) => {
1028
1030
if ( linkedRef . current ?. getOverlay ( ) ) {
1029
1031
linkedRef . current ?. hide ( ) ;
0 commit comments