framework7-react
Advanced tools
Comparing version 7.0.0-beta.12 to 7.0.0-beta.15
@@ -28,3 +28,3 @@ | ||
containerEl ?: string | object; | ||
ref?: React.MutableRefObject<{el: HTMLElement | null; f7Actions: () => Actions}>; | ||
ref?: React.MutableRefObject<{el: HTMLElement | null; f7Actions: () => Actions.Actions}>; | ||
color?: string; | ||
@@ -31,0 +31,0 @@ colorTheme?: string; |
@@ -41,3 +41,3 @@ | ||
onRangeChanged ?: (val?: any) => void; | ||
ref?: React.MutableRefObject<{el: HTMLElement | null; f7Range: () => Range.Rage}>; | ||
ref?: React.MutableRefObject<{el: HTMLElement | null; f7Range: () => Range.Range}>; | ||
} | ||
@@ -44,0 +44,0 @@ declare const Range: React.FunctionComponent<RangeProps>; |
@@ -12,2 +12,3 @@ | ||
style?: React.CSSProperties; | ||
initRouterOnTabShow?: boolean; | ||
tab ?: boolean; | ||
@@ -14,0 +15,0 @@ tabActive ?: boolean; |
@@ -26,2 +26,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
url, | ||
initRouterOnTabShow, | ||
browserHistoryInitialMatch = true | ||
@@ -32,2 +33,3 @@ } = props; | ||
const restChildren = childrenArray.filter(c => !c.props || !c.props.initialPage); | ||
const shouldInitRouter = !(initRouterOnTabShow && tab && !tabActive); | ||
const extraAttrs = getExtraAttrs(props); | ||
@@ -66,3 +68,3 @@ const f7View = useRef(null); | ||
if (f7View.current && f7View.current.router && (url || main)) { | ||
if (shouldInitRouter && f7View.current && f7View.current.router && (url || main)) { | ||
const initialData = getRouterInitialComponent(f7View.current.router, initialPageComponent); | ||
@@ -69,0 +71,0 @@ initialPage = initialData.initialPage; |
/** | ||
* Framework7 React 7.0.0-beta.12 | ||
* Framework7 React 7.0.0-beta.15 | ||
* Build full featured iOS & Android apps using Framework7 & React | ||
@@ -10,3 +10,3 @@ * https://framework7.io/react/ | ||
* | ||
* Released on: February 22, 2022 | ||
* Released on: April 11, 2022 | ||
*/ | ||
@@ -13,0 +13,0 @@ import Framework7React from './shared/plugin.js'; |
{ | ||
"name": "framework7-react", | ||
"version": "7.0.0-beta.12", | ||
"version": "7.0.0-beta.15", | ||
"description": "Build full featured iOS & Android apps using Framework7 & React", | ||
@@ -28,2 +28,3 @@ "type": "module", | ||
"phonegap", | ||
"capacitor", | ||
"native", | ||
@@ -30,0 +31,0 @@ "touch", |
420022
12345