cradova 3.12.3 → 3.12.5

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
@@ -534,9 +534,6 @@ class SilentStore {
534
534
  for (const key in this.$store.$_internal_data) {
535
535
  if (this.$store.$_internal_data.hasOwnProperty(key)) {
536
536
  Object.defineProperty(this, key, {
537
- get() {
538
- return this.$store.$_internal_data[key];
539
- },
540
537
  set(value) {
541
538
  this.$store.$_internal_data[key] = value;
542
539
  },
@@ -1089,6 +1086,9 @@ class Router {
1089
1086
  class RefInstance {
1090
1087
  $refs = {};
1091
1088
  current(key) {
1089
+ if (!document.contains(this.$refs[key])) {
1090
+ this.$refs[key] = undefined;
1091
+ }
1092
1092
  return this.$refs[key];
1093
1093
  }
1094
1094
  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.5",
4
4
  "description": "Build Powerful ⚡ Web Apps with Ease",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",