((props, ref
const opNode = objectPageRef.current;
if (opNode) {
// 12px or 0.75rem margin for ui5wc border and input margins
- opNode.style.scrollPaddingBlock = `${Math.ceil(12 + topHeaderHeight + TAB_CONTAINER_HEADER_HEIGHT + (!headerCollapsed && headerPinned ? headerContentHeight : 0))}px ${footerArea ? 'calc(var(--_ui5wcr-BarHeight) + 1.25rem)' : 0}`;
- }
- }}
- onBlur={(e) => {
- const opNode = objectPageRef.current;
- if (opNode && !e.currentTarget.contains(e.relatedTarget as Node)) {
- opNode.style.scrollPaddingBlock = '0px';
+ opNode.style.scrollPaddingBlock = scrollPaddingBlock;
}
}}
+ onBlur={handleContentBlur}
>
((p
navigateSections({ e, onKeyDown: props.onKeyDown, componentName: 'ObjectPageSection' });
const target = e.currentTarget as HTMLElement;
if (
+ target === e.target &&
(e.key === 'ArrowDown' || e.key === 'ArrowRight') &&
(target.nextElementSibling as HTMLElement).dataset.componentName === 'ObjectPageSection'
) {
@@ -219,6 +220,7 @@ const ObjectPageSection = forwardRef((p
});
}
if (
+ target === e.target &&
(e.key === 'ArrowUp' || e.key === 'ArrowLeft') &&
(target.previousElementSibling as HTMLElement).dataset.componentName === 'ObjectPageSection'
) {