mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 01:23:32 -06:00
Dashboards: Fix Mobile support dashboard issues on new iOS 16.3 (#65542)
This commit is contained in:
parent
d473fa3977
commit
3ad4dc1547
@ -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" />;
|
||||
}, []);
|
||||
|
||||
|
@ -18,7 +18,7 @@ exports[`CustomScrollbar renders correctly 1`] = `
|
||||
className="scrollbar-view"
|
||||
style={
|
||||
{
|
||||
"WebkitOverflowScrolling": "touch",
|
||||
"WebkitOverflowScrolling": "auto",
|
||||
"bottom": undefined,
|
||||
"left": undefined,
|
||||
"marginBottom": 0,
|
||||
|
Loading…
Reference in New Issue
Block a user