Skip to content

Commit 3ecadc2

Browse files
committed
fix(react): add typings for React components refs
Fixes #3827
1 parent 7f94d6f commit 3ecadc2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+110
-0
lines changed

src/react/components/accordion-content.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { colorClasses } from '../shared/mixins';
66
id: string | number;
77
className: string;
88
style: React.CSSProperties;
9+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
910
COLOR_PROPS
1011
*/
1112

src/react/components/accordion-item.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { f7, f7ready } from '../shared/f7';
1515
onAccordionBeforeClose? : (prevent?: any) => void
1616
onAccordionClose? : (...args: any[]) => void
1717
onAccordionClosed? : (...args: any[]) => void
18+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
1819
COLOR_PROPS
1920
*/
2021

src/react/components/accordion-toggle.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { colorClasses } from '../shared/mixins';
66
id: string | number;
77
className: string;
88
style: React.CSSProperties;
9+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
910
COLOR_PROPS
1011
*/
1112

src/react/components/accordion.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { colorClasses } from '../shared/mixins';
77
className: string;
88
style: React.CSSProperties;
99
accordionOpposite: boolean;
10+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
1011
COLOR_PROPS
1112
*/
1213

src/react/components/actions-button.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { f7 } from '../shared/f7';
1010
bold: boolean;
1111
close: boolean;
1212
onClick? : (event?: any) => void
13+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
1314
COLOR_PROPS
1415
*/
1516

src/react/components/actions-group.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { colorClasses } from '../shared/mixins';
66
id: string | number;
77
className: string;
88
style: React.CSSProperties;
9+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
910
COLOR_PROPS
1011
*/
1112

src/react/components/actions-label.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { colorClasses } from '../shared/mixins';
88
style: React.CSSProperties;
99
bold: boolean;
1010
onClick?: (event?: any) => void
11+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
1112
COLOR_PROPS
1213
*/
1314

src/react/components/actions.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { Actions } from 'framework7/types';
3030
onActionsClose? : (instance?: Actions.Actions) => void
3131
onActionsClosed? : (instance?: Actions.Actions) => void
3232
containerEl? : string | object
33+
ref?: React.MutableRefObject<{el: HTMLElement | null; f7Actions: () => Actions}>;
3334
COLOR_PROPS
3435
*/
3536

src/react/components/app.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { f7init, f7 } from '../shared/f7';
1717
/* dts-props
1818
className?: string;
1919
style?: React.CSSProperties;
20+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
2021
COLOR_PROPS
2122
*/
2223

src/react/components/appbar.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { colorClasses } from '../shared/mixins';
1111
inner: boolean;
1212
innerClass: string;
1313
innerClassName: string;
14+
ref?: React.MutableRefObject<{el: HTMLElement | null}>;
1415
COLOR_PROPS
1516
*/
1617

0 commit comments

Comments
 (0)