@stencil/vue-output-target
Advanced tools
Comparing version 0.0.1-dev.11722646072.12d0ef0b to 0.0.1-dev.11724176899.11a0efb7
{ | ||
"name": "@stencil/vue-output-target", | ||
"version": "0.0.1-dev.11722646072.12d0ef0b", | ||
"version": "0.0.1-dev.11724176899.11a0efb7", | ||
"description": "Vue output target for @stencil/core components.", | ||
@@ -62,3 +62,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "2d0ef0b5ab32bae7be081b7de63a9975f9e4e305" | ||
"gitHead": "1a0efb7709759da345185263535aa2b70f031112" | ||
} |
@@ -118,2 +118,12 @@ // @ts-nocheck | ||
if (navManager !== undefined) { | ||
/** | ||
* This prevents the browser from | ||
* performing a page reload when pressing | ||
* an Ionic component with routerLink. | ||
* The page reload interferes with routing | ||
* and causes ion-back-button to disappear | ||
* since the local history is wiped on reload. | ||
*/ | ||
ev.preventDefault(); | ||
let navigationPayload: any = { event: ev }; | ||
@@ -189,2 +199,13 @@ for (const key in props) { | ||
// If router link is defined, add href to props | ||
// in order to properly render an anchor tag inside | ||
// of components that should become activatable and | ||
// focusable with router link. | ||
if (props[ROUTER_LINK_VALUE] !== EMPTY_PROP) { | ||
propsToAdd = { | ||
...propsToAdd, | ||
href: props[ROUTER_LINK_VALUE], | ||
}; | ||
} | ||
/** | ||
@@ -191,0 +212,0 @@ * vModelDirective is only needed on components that support v-model. |
55024
1012