Dashboards: Fix Mobile support dashboard issues on new iOS 16.3 (#65542)

This commit is contained in:
Alexa V 2023-03-30 09:47:00 +02:00 committed by GitHub
parent d473fa3977
commit 3ad4dc1547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -111,6 +111,11 @@ export const CustomScrollbar = ({
}, []);
const renderView = useCallback((passedProps: JSX.IntrinsicElements['div']) => {
// fixes issues of visibility on safari and ios devices
if (passedProps.style && passedProps.style['WebkitOverflowScrolling'] === 'touch') {
passedProps.style['WebkitOverflowScrolling'] = 'auto';
}
return <div {...passedProps} className="scrollbar-view" />;
}, []);

View File

@ -18,7 +18,7 @@ exports[`CustomScrollbar renders correctly 1`] = `
className="scrollbar-view"
style={
{
"WebkitOverflowScrolling": "touch",
"WebkitOverflowScrolling": "auto",
"bottom": undefined,
"left": undefined,
"marginBottom": 0,