Skip to content

Commit

Permalink
fix: fix native back (#6457)
Browse files Browse the repository at this point in the history
* fix: fix native back

* chore: add changeset
  • Loading branch information
answershuto authored Aug 14, 2023
1 parent 4d5112b commit b588f0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-lamps-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ice/cache-canvas': patch
---

fix: native back
2 changes: 1 addition & 1 deletion packages/cache-canvas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/cache-canvas",
"version": "0.0.9",
"version": "0.0.11",
"description": "",
"main": "./esm/index.js",
"types": "./esm/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/cache-canvas/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const CacheCanvas = forwardRef((props: CacheCanvasProps, ref) => {
window._windvane_backControl = () => {
cacheCanvasFunc();
// Windvane must return a string value of true for it to work properly.
return 'true';
return 'false';
};
}
document.addEventListener('wvBackClickEvent', cacheCanvasFunc, false);
Expand Down

0 comments on commit b588f0a

Please sign in to comment.