From 073714a33ba7d1a95398b0d97675122a24e4d06b Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 11 Oct 2020 21:11:11 +0800 Subject: [PATCH] context --- src/core/shortcut.js | 1 - src/core/widget.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/shortcut.js b/src/core/shortcut.js index 7f776cb87..ae100f5d7 100644 --- a/src/core/shortcut.js +++ b/src/core/shortcut.js @@ -22,7 +22,6 @@ widget._initProps(config); widget._initRoot(); - widget._initRef(); if (!lazy || config.element || config.root) { widget._lazyConstructor(); } diff --git a/src/core/widget.js b/src/core/widget.js index 7b10f46e0..25c7259f0 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -35,6 +35,7 @@ if (!this._constructed) { this._constructed = true; this._init(); + this._initRef(); } },