cradova 3.12.3 → 3.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1089,6 +1089,9 @@ class Router {
1089
1089
  class RefInstance {
1090
1090
  $refs = {};
1091
1091
  current(key) {
1092
+ if (!document.contains(this.$refs[key])) {
1093
+ this.$refs[key] = undefined;
1094
+ }
1092
1095
  return this.$refs[key];
1093
1096
  }
1094
1097
  get refs() {
@@ -143,8 +143,8 @@ export declare class Router {
143
143
  */
144
144
  export declare class RefInstance<T = unknown> {
145
145
  private $refs;
146
- current(key: string): T;
147
- get refs(): Record<string, T>;
146
+ current(key: string): T | undefined;
147
+ get refs(): Record<string, T | undefined>;
148
148
  /**
149
149
  * Bind a DOM element to a reference name.
150
150
  * @param name - The name to reference the DOM element by.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.12.3",
3
+ "version": "3.12.4",
4
4
  "description": "Build Powerful ⚡ Web Apps with Ease",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",